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

This commit is contained in:
Michael Curran
2015-12-12 23:14:09 +00:00
committed by Reece H. Dunn
parent 50377416cf
commit 7ebca8cb53
+1 -1
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