[Pkg-zsh-devel] Bug#654225: zsh: Multibyte fails when $LANG.utf variable is not set
Morten Bo Johansen
mbj at spamcop.net
Tue Jan 3 11:10:49 UTC 2012
Frank Terbeck <ft at bewatermyfriend.org> wrote:
> If you still think this is a bug and not an error in your setup, then
> please provide a concise way to reproduce the issue, because so far I've
> invested about an hour into seeing that everything works as expected. ;)
> If I am missing something, tell me what it is exactly.
What you are missing is that you never once tried the combination setting
I described as causing problem. Please try to set a non-utf8 _country_
locale for the LANG variable together with a utf8 locale for the LC_ALL
variable. E.g. at your zsh prompt:
export LANG=de_DE
export LC_ALL=de_DE.utf8
type in e.g. an umlaut character, type backspace to delete it and notice
that it is deleted piecemeal by octet. It should happen to you too!
Despite the sillyness of this locale combination, zsh should not
deactivate multibyte support. I can do exactly the same in bash and there
is no problem. I do not see how this could be anything in my setup. I
tried to load zsh with the -f parameter and it makes no change. There
were no locale related settings in my ~/.environment. This combination
export LANG=
export LC_ALL=da_DK.utf8
is okay. So it is the specific combination of a non-utf8 country locale
for LANG and a utf8 country locale for LC_ALL that is at fault.
Thanks,
Morten
More information about the Pkg-zsh-devel
mailing list