localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Sep 2012 17:47:43 +0000 (10:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Sep 2012 17:48:04 +0000 (10:48 -0700)
commit0cd711b27ba11019c96314a42e197bc288f415d7
treeac862ac2e2f63d3f59b7a0e9380d64596d26b1a4
parentead34780b88448b7ccd9ffd18968a3cef76aa14c
localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX

* lib/localcharset.c (locale_charset) [DARWIN7]:
Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
as these two values are incompatible.  Problem reported by Max Horn.
For more discussion, please see
<http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
ChangeLog
lib/localcharset.c