--- gnome-commander-1.2.7/src/gnome-cmd-options-dialog.cc.orig	2008-08-22 10:31:47.881807000 +0900
+++ gnome-commander-1.2.7/src/gnome-cmd-options-dialog.cc	2008-08-22 10:34:26.859538000 +0900
@@ -168,12 +168,17 @@ static void on_date_format_update (GtkBu
     test_label = lookup_widget (options_dialog, "date_format_test_label");
 
     const char *format = gtk_entry_get_text (GTK_ENTRY (format_entry));
+    gchar *locale_format = g_locale_from_utf8 (format, -1, NULL, NULL, NULL);
+    gchar *utf8_str = NULL;
 
     char s[256];
     time_t t = time (NULL);
-    strftime (s, sizeof(s), format, localtime (&t));
+    strftime (s, sizeof(s), locale_format, localtime (&t));
+    utf8_str = g_locale_to_utf8 (s, -1, NULL, NULL, NULL);
 
-    gtk_label_set_text (GTK_LABEL (test_label), s);
+    gtk_label_set_text (GTK_LABEL (test_label), utf8_str);
+    g_free (utf8_str);
+    g_free (locale_format);
 }
 
 
--- gnome-commander-1.2.7/src/utils.cc.orig	2008-08-22 10:25:14.699144000 +0900
+++ gnome-commander-1.2.7/src/utils.cc	2008-08-22 10:28:14.262819000 +0900
@@ -421,10 +421,18 @@ const gchar *size2string (GnomeVFSFileSi
 const gchar *time2string (time_t t, const gchar *date_format)
 {
     static gchar buf[64];
+    gchar *locale_format = NULL;
+    gchar *utf8_str = NULL;
     struct tm lt;
 
     localtime_r (&t, &lt);
-    strftime (buf, sizeof(buf), date_format, &lt);
+    locale_format = g_locale_from_utf8 (date_format, -1, NULL, NULL, NULL);
+    strftime (buf, sizeof(buf), locale_format, &lt);
+    utf8_str = g_locale_to_utf8 (buf, -1, NULL, NULL, NULL);
+    if (utf8_str)
+        strcpy (buf, utf8_str);
+    g_free (utf8_str);
+    g_free (locale_format);
 
     return buf;
 }
