g_date_time_format: fix output in non-UTF-8 locales
authorDan Winship <danw@gnome.org>
Thu, 19 Jan 2012 15:39:57 +0000 (10:39 -0500)
committerDan Winship <danw@gnome.org>
Sat, 21 Jan 2012 00:50:48 +0000 (19:50 -0500)
commitb6a8dec558c259d3320a5d0d4bc5f8c0d6c62a41
treeda1051c0ce1c7f5137e09843a11366bf074b24b6
parent9fa374ccf7f360c54c29a0cee746b20820ae4afa
g_date_time_format: fix output in non-UTF-8 locales

In non-UTF-8 locales, the translations and nl_langinfo() return values
must be converted to UTF-8 before being returned to the caller.
Likewise, when making a recursive call to expand a format like '%x',
the format string must first be converted to UTF-8.

https://bugzilla.gnome.org/show_bug.cgi?id=668250
configure.ac
glib/gdatetime.c
glib/tests/gdatetime.c