aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-04-17 23:50:12 +0000
committerTom Tromey <tromey@redhat.com>2009-04-17 23:50:12 +0000
commit587204947e27700bd4bacd12aaf2ce3aef4c3a28 (patch)
tree915e5127f6e50817876aef310591760dce9e2df0
parentb6b450f1e8d85f8bfc999025a5251156413adbd4 (diff)
downloadgdb-587204947e27700bd4bacd12aaf2ce3aef4c3a28.zip
gdb-587204947e27700bd4bacd12aaf2ce3aef4c3a28.tar.gz
gdb-587204947e27700bd4bacd12aaf2ce3aef4c3a28.tar.bz2
* charset.c (_initialize_charset): Add special case for "646".
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/charset.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 89c5407..f0cbe8e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/charset.c b/gdb/charset.c
index c774638..43b69ec 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 ();