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-06-14 14:13:57 -07:00
2016-01-14 16:58:29 +01:00
2015-06-14 14:13:57 -07:00
2016-02-16 11:40:40 -08:00
2016-02-16 11:40:40 -08:00
2014-08-20 21:45:07 -07:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2014-12-23 15:46:47 -08:00
2014-12-23 15:46:47 -08:00
2013-03-03 00:45:34 +05:30
2005-09-20 23:31:55 +10:00
2015-04-05 23:47:04 -07:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2010-09-18 10:18:26 +08:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2005-09-20 23:31:55 +10:00
2014-07-13 19:11:29 -07:00
2012-07-08 09:19:11 +08:00
2012-07-08 09:19:11 +08:00
2015-11-14 13:15:30 +01:00