]> Pileus Git - ~andy/gtk/commitdiff
Fix warnings and display of modified date / time in filechooser for some
authorLoïc Minier <lool@dooz.org>
Thu, 4 Oct 2007 07:40:55 +0000 (07:40 +0000)
committerLoic Minier <lminier@src.gnome.org>
Thu, 4 Oct 2007 07:40:55 +0000 (07:40 +0000)
2007-10-04  Loïc Minier  <lool@dooz.org>

       * gtk/gtkfilechooserdefault.c: (list_mtime_data_func): Fix warnings
       and display of modified date / time in filechooser for some locales as
       it was missing a locale to UTF-8 conversion. Fixes #482504.

svn path=/trunk/; revision=18880

ChangeLog
gtk/gtkfilechooserdefault.c

index df3aab99f77421f24d6aa8c6397f32a4c5a5f59b..95c81afccc14b857de98335995f5cd0d57fbdd0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-04  Loïc Minier  <lool@dooz.org>
+
+       * gtk/gtkfilechooserdefault.c: (list_mtime_data_func): Fix warnings
+       and display of modified date / time in filechooser for some locales as
+       it was missing a locale to UTF-8 conversion. Fixes #482504.
+
 2007-10-03  Xan Lopez  <xan@gnome.org>
 
        * gtk/gtknotebook.c: remove duplicated declaration of
index 819320d84d54e748e016971579bb404d1ada435e..ae5a0b3f76f25a329dea410f364db1183900f7bc 100644 (file)
@@ -11144,7 +11144,7 @@ list_mtime_data_func (GtkTreeViewColumn *tree_column,
        }
 
       if (strftime (buf, sizeof (buf), format, &tm_mtime) != 0)
-        date_str = g_strdup (buf);
+        date_str = g_locale_to_utf8 (buf, -1, NULL, NULL, NULL);
       else
        date_str = g_strdup (_("Unknown"));
     }