aboutsummaryrefslogtreecommitdiffstats
path: root/libwc/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libwc/charset.c')
-rw-r--r--libwc/charset.c3
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++) {