Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Possible multibyte issue do to missing check for 'utf8' in the source code



Hello Devs,

I've been trying to output some special characters that are multi byte in length, but
everytime I try I get the same results. The output is as if the special characters are
of single character width.  The MULTIBYTE option is set. UTF-8 is enable on my
virtual terminal(xfcer-terminal). Both LANG and LC_ALL are set to 'en_US.utf8'.

Using a gentoo system, so naming is 'en_US.utf8' not 'en_US.UTF-8' as is with
most distributions.

I did a grep of the zsh repository and found the following:

Src/compat.c:    if (!strcmp(nl_langinfo(CODESET), "UTF-8"))

Src/utils.c:    if (!strcmp(nl_langinfo(CODESET), "UTF-8")) {

I'm not a C programmer(know enough to be dangerous) so I may be barking up
the wrong tree here.  Could this be causing the issue I'm having?

ZSH patch level:  3cd363c

Thanks for your consideration.

Regards,

Jim Murphy


Messages sorted by: Reverse Date, Date, Thread, Author