Have default_charset() try mapping "646" -> "ASCII" instead of "ascii".

This commit is contained in:
Wayne Davison
2006-02-06 09:04:20 +00:00
parent 2a62f5ee19
commit 7a9d183fc4

View File

@@ -60,7 +60,7 @@ static const char *default_charset(void)
#elif defined HAVE_LANGINFO_H && defined HAVE_NL_LANGINFO
const char *def = nl_langinfo(CODESET);
if (strcmp(def, "646") == 0) /* Solaris brain-damage */
return "ascii";
return "ASCII";
return def;
#else
return ""; /* Works with (at the very least) gnu iconv... */