frontend: call setlocale to get LC_TIME
authornotaz <notasas@gmail.com>
Wed, 4 Jan 2012 22:07:24 +0000 (00:07 +0200)
committernotaz <notasas@gmail.com>
Wed, 4 Jan 2012 23:41:19 +0000 (01:41 +0200)
frontend/common/menu.c

index 9a6a47c..97e365d 100644 (file)
@@ -13,6 +13,7 @@
 #include <stdlib.h>\r
 #include <stdarg.h>\r
 #include <time.h>\r
+#include <locale.h> // savestate date\r
 \r
 #include "menu.h"\r
 #include "fonts.h"\r
@@ -310,6 +311,9 @@ void menu_init(void)
                }\r
                fclose(f);\r
        }\r
+\r
+       // use user's locale for savestate date display\r
+       setlocale(LC_TIME, "");\r
 }\r
 \r
 static void menu_draw_begin(int need_bg)\r