localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
[gnulib.git] / ChangeLog
index 268292b..5425df4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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>.
+
        doc: document sticky-EOF issue
        * doc/posix-functions/fgetc.texi (fgetc):
        * doc/posix-functions/fgets.texi (fgets):