Browse Source

strftime on windows no longer supports %F. Therefore use %Y-%m-%d which is equivilent. Stops a crash in espeakEdit on Windows.

master
Michael Curran 10 years ago
parent
commit
7ebca8cb53
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/compiledata.cpp

+ 1
- 1
src/compiledata.cpp View File

@@ -902,7 +902,7 @@ static void PrintPhonemesUsed(FILE *f, const char *dsource, const char *dictname

if(mod_time > 0)
{
strftime(time_string, sizeof(time_string), "%F", localtime(&mod_time));
strftime(time_string, sizeof(time_string), "%Y-%m-%d", localtime(&mod_time));
fprintf(f,"\n\nDictionary %s_dict %s\n",dictname, time_string);
}
else

Loading…
Cancel
Save