From 7ebca8cb5340e376525e5c0e7c07f8234dcf0226 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Wed, 9 Sep 2015 11:56:13 +1000 Subject: [PATCH] strftime on windows no longer supports %F. Therefore use %Y-%m-%d which is equivilent. Stops a crash in espeakEdit on Windows. --- src/compiledata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiledata.cpp b/src/compiledata.cpp index 11bf30e4..d6d94c3b 100644 --- a/src/compiledata.cpp +++ b/src/compiledata.cpp @@ -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