* charset.c (_initialize_charset): Add special case for "646".

This commit is contained in:
Tom Tromey 2009-04-17 23:50:12 +00:00
parent b6b450f1e8
commit 587204947e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-04-17 Tom Tromey <tromey@redhat.com>
* charset.c (_initialize_charset): Add special case for "646".
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.

View File

@ -817,6 +817,10 @@ _initialize_charset (void)
#ifndef PHONY_ICONV
#ifdef HAVE_LANGINFO_CODESET
auto_host_charset_name = nl_langinfo (CODESET);
/* Solaris will return `646' here -- but the Solaris iconv then
does not accept this. */
if (!strcmp (auto_host_charset_name, "646"))
auto_host_charset_name = "ASCII";
target_charset_name = auto_host_charset_name;
set_be_le_names ();