Does the following gnulib patch fix things for Bison on OS X? I'll CC: this to bug-gnulib@gnu.org, to give Bruno Haible a heads-up about the localcharset problem.
localcharset: port to Mac OS X's C locale * lib/localcharset.c (get_charset_aliases) [DARWIN7]: Map "US-ASCII" to "ASCII". Problem reported by Akim Demaille in <http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00107.html>. diff --git a/lib/localcharset.c b/lib/localcharset.c index d86002c..68ccf60 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -262,6 +262,7 @@ get_charset_aliases (void) "ISO8859-9" "\0" "ISO-8859-9" "\0" "ISO8859-13" "\0" "ISO-8859-13" "\0" "ISO8859-15" "\0" "ISO-8859-15" "\0" + "US-ASCII" "\0" "ASCII" "\0" "KOI8-R" "\0" "KOI8-R" "\0" "KOI8-U" "\0" "KOI8-U" "\0" "CP866" "\0" "CP866" "\0"