Fix warnings and display of modified date / time in filechooser for some

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
This commit is contained in:
Loïc Minier
2007-10-04 07:40:55 +00:00
committed by Loic Minier
parent afe6935e17
commit 618c8de221
2 changed files with 7 additions and 1 deletions

View File

@ -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

View 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"));
}