diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:24:02 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:24:02 +0000 |
commit | d6d37ee0c991ead2b1613c0af242d2e603313d87 (patch) | |
tree | f54ef4313b0db75941e44bf480c5b9edfa16e208 /libwc/charset.c | |
parent | Releasing debian version 0.5.1-5.1 (diff) | |
download | w3m-d6d37ee0c991ead2b1613c0af242d2e603313d87.tar.gz w3m-d6d37ee0c991ead2b1613c0af242d2e603313d87.zip |
Releasing debian version 0.5.2-1debian/0.5.2-1
Diffstat (limited to 'libwc/charset.c')
-rw-r--r-- | libwc/charset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libwc/charset.c b/libwc/charset.c index e64b6f6..d86a129 100644 --- a/libwc/charset.c +++ b/libwc/charset.c @@ -376,7 +376,8 @@ wc_locale_to_ces(char *locale) #ifdef HAVE_LANGINFO_CODESET { char *cs = nl_langinfo(CODESET); - return wc_charset_to_ces(cs); + if (cs && strcmp(cs, "US-ASCII")) + return wc_charset_to_ces(cs); } #endif for (n = 0; *p && *p != '.' && n < 5; p++) { |