[Pkg-zsh-devel] Bug#654225: zsh: Multibyte fails when $LANG.utf variable is not set

Frank Terbeck ft at bewatermyfriend.org
Tue Jan 3 14:46:09 UTC 2012


Frank Terbeck wrote:
[...]
> I can reproduce this right now. I'm unsure where I went wrong before.

Now I know.

The order in which you have to set LANG and LC_ALL is crucial to
reproduce the issue. And the order in my recipe from the last mail is
wrong:

[...]
>     b) export LANG=de_DE (*not* POSIX)
>        export LC_ALL=de_DE.utf8
[...]

It actually has to be the other way around. So:


    b) export LC_ALL=de_DE.utf8
       export LANG=de_DE (*not* POSIX)
       ...or whatever language you like, just the UTF-8 locale in
       `LC_ALL' and the non-UTF-8 locale in `LANG'. Both locales
       should probably exist on your system. So check "locale -a" and
       update `/etc/locale.gen' and run `locale-gen' if needed.
    c) Type two multibyte characters, like `ö' (o with diaeresis).
    d) Type backspace four time.
    e) See the cursor erase parts of your prompt.
    f) Rant about locales in your native tongue.


Regards, Frank





More information about the Pkg-zsh-devel mailing list