Kurtis Rader
c2f1df1d4a
fix handling of non-ASCII chars in C locale
...
The relevant standards allow the mbtowc/mbrtowc functions to reject
non-ASCII characters (i.e., chars with the high bit set) when the locale
is C or POSIX. The BSD libraries (e.g., on OS X) don't do this but
the GNU libraries (e.g., on Linux) do. Like most programs we need the
C/POSIX locales to allow arbitrary bytes. So explicitly check if we're
in a single-byte locale (which would also include ISO-8859 variants)
and simply pass-thru the chars without encoding or decoding.
Fixes #2802 .
2016-03-20 18:47:38 -07:00
..
2015-07-29 09:30:19 +08:00
2016-02-27 19:38:15 -08:00
2016-01-10 17:25:22 -08:00
2016-02-18 17:00:26 -08:00
2015-12-03 21:08:48 -08:00
2016-02-27 19:38:15 -08:00
2015-09-22 18:08:00 -07:00
2016-02-19 15:45:31 -08:00
2016-02-21 19:32:08 -08:00
2016-02-27 19:38:15 -08:00
2015-09-22 18:08:00 -07:00
2016-03-20 18:47:38 -07:00
2016-02-27 19:38:15 -08:00
2015-12-08 20:32:59 -08:00
2015-07-26 10:20:13 +08:00
2016-03-20 18:47:38 -07:00
2016-02-28 18:36:34 -08:00
2016-02-27 18:40:54 -08:00
2016-02-27 19:38:15 -08:00
2016-03-18 15:53:29 -07:00
2016-02-27 19:38:15 -08:00
2016-03-20 18:47:38 -07:00
2016-02-27 19:38:15 -08:00
2015-07-26 10:20:13 +08:00
2016-02-27 19:38:15 -08:00
2016-02-02 15:39:46 -08:00
2015-07-26 10:20:13 +08:00
2016-03-05 21:50:05 -08:00
2016-02-28 18:36:34 -08:00
2016-03-20 18:47:38 -07:00
2016-03-20 18:47:38 -07:00
2016-03-08 13:38:57 -08:00
2016-03-08 13:38:57 -08:00
2015-09-29 14:55:51 -07:00
2015-07-24 00:59:27 -07:00
2016-03-08 13:38:57 -08:00
2015-10-07 18:59:41 -07:00
2015-10-07 18:59:41 -07:00
2016-02-28 18:36:34 -08:00
2016-02-18 17:00:26 -08:00
2016-03-20 18:47:38 -07:00
2016-02-27 19:38:15 -08:00
2016-03-20 18:47:38 -07:00
2016-02-28 18:36:34 -08:00
2016-02-02 18:13:40 -08:00
2016-02-28 18:36:34 -08:00
2015-07-26 10:20:13 +08:00
2015-07-26 10:20:13 +08:00
2016-02-02 15:39:46 -08:00
2016-02-27 19:38:15 -08:00
2015-07-26 10:20:13 +08:00
2015-07-24 00:59:27 -07:00
2015-07-24 00:59:27 -07:00
2015-08-10 22:01:50 -07:00
2015-07-26 10:20:13 +08:00
2016-02-27 19:38:15 -08:00
2016-03-20 18:47:38 -07:00
2015-08-11 01:00:05 -07:00
2015-07-26 10:20:13 +08:00
2016-02-27 20:04:57 -08:00
2015-12-19 14:49:07 -08:00
2016-03-17 16:37:52 -07:00
2016-02-28 00:33:11 -08:00
2015-12-19 14:49:07 -08:00
2015-12-19 11:17:13 -08:00
2016-02-27 19:38:15 -08:00
2016-02-28 00:33:11 -08:00
2016-02-28 00:44:20 -08:00
2016-02-28 00:44:20 -08:00
2015-07-26 10:20:13 +08:00
2015-07-26 10:20:13 +08:00
2016-02-28 00:33:11 -08:00
2016-02-28 00:33:11 -08:00
2016-02-18 17:00:25 -08:00
2016-02-18 17:00:25 -08:00
2016-03-03 18:49:24 -08:00
2015-07-26 10:20:13 +08:00
2015-07-26 10:20:13 +08:00
2015-07-24 00:59:27 -07:00
2016-03-03 18:49:24 -08:00
2016-02-28 01:38:28 -08:00
2016-02-28 18:36:34 -08:00
2016-02-18 17:00:26 -08:00
2015-07-26 10:20:13 +08:00
2015-07-26 10:20:13 +08:00
2016-02-27 19:38:15 -08:00
2015-07-26 10:20:13 +08:00
2015-12-10 01:02:57 -08:00
2015-07-24 00:59:27 -07:00
2016-02-28 18:36:34 -08:00
2016-02-27 19:38:15 -08:00
2016-03-02 11:24:23 -08:00
2016-03-02 11:24:23 -08:00
2015-08-11 01:00:05 -07:00
2016-02-27 19:45:43 -08:00
2015-07-26 10:20:13 +08:00
2015-07-26 10:20:13 +08:00
2016-02-27 19:45:43 -08:00
2016-03-03 18:49:24 -08:00
2016-02-19 15:45:31 -08:00
2016-02-28 18:36:34 -08:00
2016-03-20 18:47:38 -07:00
2016-03-20 18:47:38 -07:00