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

Frank Terbeck ft at bewatermyfriend.org
Tue Jan 3 15:12:33 UTC 2012


Michael Prokop wrote:
[...]
> I sadly still can't reproduce it yet, FTR.

Mika and I talked about this on IRC. Turns out he had `LC_CTYPE' in his
environment, which gets saved by zsh's handling, which prevents the
problem.

So, the real[tm] recipe is this:


    a) Start a blank zsh (zsh -f)
    b) unset LC_CTYPE
    c) 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.
    d) Type two multibyte characters, like `ö' (o with diaeresis).
    e) Type backspace four time.
    f) See the cursor erase parts of your prompt.


Regards, Frank





More information about the Pkg-zsh-devel mailing list