Руслан Ижбулатов
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
..
2016-01-14 15:11:08 +00:00
2016-01-18 18:37:28 +00:00
2016-05-14 04:59:39 +00:00
2015-12-16 07:47:53 -05:00
2016-03-09 07:50:07 +00:00
2015-09-21 06:44:58 -04:00
2015-11-07 10:48:32 +01:00
2014-07-23 09:28:23 -04:00
2016-04-27 13:17:28 +00:00
2014-01-31 14:31:55 +01:00
2015-11-07 10:48:32 +01:00
2015-11-07 10:48:32 +01:00
2016-03-26 08:52:40 -04:00
2015-11-12 15:01:54 +08:00
2016-04-11 23:31:38 -04:00
2015-11-07 10:48:32 +01:00
2016-04-07 08:43:24 -05:00
2016-05-16 05:19:10 +00:00
2016-03-10 09:11:13 +01:00
2015-11-07 18:55:17 +02:00
2015-11-07 10:48:32 +01:00
2016-04-11 23:31:38 -04:00
2016-04-27 13:17:28 +00:00
2016-03-21 12:35:25 +00:00
2015-09-22 11:18:30 -04:00
2016-04-26 10:40:07 +00:00
2016-04-26 10:40:07 +00:00
2015-10-08 12:32:58 +01:00
2015-10-07 23:39:29 -04:00
2015-12-15 19:40:43 -05:00
2015-11-30 11:22:17 +08:00
2016-05-05 00:44:48 +08:00
2016-05-08 14:11:10 +02:00
2015-08-02 17:37:12 +02:00
2015-09-07 09:50:41 -04:00
2015-11-07 10:48:32 +01:00
2015-11-07 10:48:32 +01:00
2016-04-27 13:17:28 +00:00
2016-01-07 15:21:04 +01:00
2015-11-07 10:48:32 +01:00
2016-04-28 14:22:51 +00:00
2015-11-02 20:03:38 +02:00
2015-11-07 10:48:32 +01:00
2015-11-07 10:48:32 +01:00
2015-09-12 11:13:45 -04:00
2014-04-15 22:19:07 +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
2015-10-15 12:54:09 -07:00
2015-11-07 10:48:32 +01:00
2015-11-07 10:48:32 +01:00
2016-04-11 23:31:38 -04:00
2015-09-22 11:18:30 -04:00
2016-02-02 17:38:05 +01:00
2015-11-05 12:53:19 +01:00
2016-04-27 13:17:28 +00:00
2016-04-27 13:17:28 +00:00
2015-10-05 15:32:41 +02:00
2016-04-27 13:17:28 +00:00
2016-04-27 13:17:28 +00:00
2016-04-26 13:52:45 +00:00
2016-01-11 09:33:32 +00:00
2015-11-16 13:14:19 -05:00
2015-11-16 13:14:19 -05:00
2015-11-07 10:48:32 +01:00
2015-11-27 11:27:51 -05:00
2015-10-04 10:24:06 -04:00
2015-10-04 10:24:06 -04:00
2016-05-07 12:38:09 -04:00
2015-10-04 10:24:06 -04:00
2016-05-10 22:43:23 -04:00
2015-12-23 16:48:10 +00:00
2016-04-27 14:55:45 +01:00
2016-04-27 13:17:27 +00:00
2015-11-07 10:48:32 +01:00
2016-02-22 08:48:44 -05:00
2016-05-11 10:18:05 -04:00
2016-04-27 13:17:27 +00:00
2016-03-15 11:14:57 +01:00
2016-02-24 13:44:10 -05:00
2016-01-26 12:55:55 +01:00