Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] fix failure of D07multibyte on Mac OS X
I've pushed the patch with the following modification.
diff --git a/Src/compat.c b/Src/compat.c
index 21e2a5e..09b3d6a 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -958,8 +958,7 @@ int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n)
int
isprint_ascii(int c)
{
- char *locale = setlocale(LC_CTYPE, NULL);
- if (strcasestr(locale, "utf-8") || strcasestr(locale, "utf8"))
+ if (!strcmp(nl_langinfo(CODESET), "UTF-8"))
return (c >= 0x20 && c <= 0x7e);
else
return isprint(c);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author