diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89c54074b0..f0cbe8ec26 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-04-17 Tom Tromey + + * charset.c (_initialize_charset): Add special case for "646". + 2009-04-17 Carlos O'Donell * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir. diff --git a/gdb/charset.c b/gdb/charset.c index c77463814d..43b69ec372 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -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 ();