diff options
author | Dai Sato <satodai@w3m.jp> | 2007-05-23 12:34:20 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2007-05-23 12:34:20 +0000 |
commit | e4305ca608b6dd74732cb877298d74319a4ecba7 (patch) | |
tree | dae2e685496b7d3d8d6b6e3e6392db3d5657e470 /libwc | |
parent | [w3m-dev 03923] avoid extra blanks in pre in table. (diff) | |
download | w3m-e4305ca608b6dd74732cb877298d74319a4ecba7.tar.gz w3m-e4305ca608b6dd74732cb877298d74319a4ecba7.zip |
[w3m-dev 04240] nl_langinfo() requires setlocale()
Diffstat (limited to 'libwc')
-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++) { |