[issue706] zshrc: xsource "/etc/default/locale" overrides environment

Frank Terbeck bts at bts.grml.org
Tue Jul 7 22:51:58 CEST 2009


Frank Terbeck <ft at grml.org> added the comment:

Michael Prokop <bts at bts.grml.org>:
> The following snippet in zshrc causes iso-term to fail:
> 
> xsource "/etc/default/locale"
> for var in LANG LC_ALL LC_MESSAGES ; do
>     [[ -n ${(P)var} ]] && export $var
> done
> 
> iso-term tries to replace UTF-8 in the environment with iso885915 (useful if 
> you have to edit iso88591 encoded documents in the shell) but as the global 
> zshrc sources /etc/default/locale and exports environment variables again this 
> doesn't have any effect.

Well well well. If it's not locale hell all over again.
I _so_ hate it... :-/

Anyway, git blame says I introduced this in git commit
76706fcdd9c160d7f3212e597d2139f45531da72 - and I think I did it
because someone (gebi?) asked for it.

The Changelog entry (and I had to look at the changelog, because my
git commit message is a pile of crap...) says:

    Always read /etc/default/locale. Users are expected to adjust
    locale settings via '.zshrc.local'.

And I think that's still correct. If your system is UTF8 by default,
we should just take that. If the user wants ISO, he/she should set
their shell up for it.

Regards, Frank

----------
assignedto: ft
messages: 2341, 2342
nosy: ft, mika
priority: bug
status: chatting
title: zshrc: xsource "/etc/default/locale" overrides environment
topic: release-stopper

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue706>
_____________________________________


More information about the Bugs-changes mailing list