Files
glib/glib
Руслан Ижбулатов 6a1e8e8fa7 g_date_time_format_locale: ensure locale encoding is used
Fallback code for g_date_time_format_locale() fetches translated
strings (such as day and month names) from .mo catalogues via
gettext. These strings always come in UTF-8 encoding, because
that is the encoding that glib sets when it initializes gettext
for itself.
However, the non-fallback code uses nl_langinfo() and expects
its results to be in locale-dependent encoding.

This mismatch can result in UTF-8 strings being converted to UTF-8,
producing gibberish.

Fix this by converting UTF-8 strings to locale-dependent encoding
before using them. Also fix the code that was already doing the locale->UTF-8
conversion to not convert the strings when they are already UTF-8-encoded.

https://bugzilla.gnome.org/show_bug.cgi?id=766092
2016-05-16 05:19:10 +00:00
..
2015-09-21 06:44:58 -04:00
2014-01-31 14:31:55 +01:00
2016-04-11 23:31:38 -04:00
2016-04-07 08:43:24 -05:00
2016-04-11 23:31:38 -04:00
2015-09-07 09:50:41 -04:00
2015-11-02 20:03:38 +02:00
2016-02-24 11:27:09 +01:00
2016-04-11 23:31:38 -04:00
2016-04-11 23:31:38 -04:00
2015-10-04 10:24:06 -04:00
2016-05-09 15:55:53 +03:00
2016-04-11 23:31:38 -04:00
2016-01-11 09:33:32 +00:00
2015-10-04 10:24:06 -04:00
2015-10-04 10:24:06 -04:00
2015-10-04 10:24:06 -04:00
2016-04-27 13:17:27 +00:00
2016-03-15 11:14:57 +01:00