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