zsh-workers
 help / color / mirror / code / Atom feed
* bad interaction of zsh 3.0.5 with locale
@ 1998-06-14  0:34 Fare Rideau
  0 siblings, 0 replies; only message in thread
From: Fare Rideau @ 1998-06-14  0:34 UTC (permalink / raw)
  To: zsh-workers

Dear ZSH Workers,
   I've recently experienced troubles with ZSH 3.0.5,
that I've diagnosed as very bad interaction with localization
in RedHat-5.0_FR (Linux 2.0 on i386).
   I originally ran into trouble by using my usual
more [A-Z]* to read all metafiles (README*, QuickStart, Makefile, FAQ, etc),
in a source packages [Note: more () { =less $@ }].
Surprisingly, ZSH would indistinctly show all files,
in case-independent sorted order. Ouch.
   After losing some time chasing down the problem (that I didn't have
on other computers running RH 5.0 with mostly equivalent configuration files,
library and zsh versions!), I identified it as ZSH making stupid things
with locale.
   My .zshenv includes (roughly):
	{ export LC_CTYPE=iso_8859_1 ; export LANG=fr_FR }
When I { unset LANG }, [A-Z] globbing works anew.

Worse! While making various tests with locale, I defined the
following functions:

nolocale () {
        unset LANG LC_CTYPE LC_ALL
}
localefr () {
        export LC_CTYPE=iso_8859_1 LANG=fr_FR
        unset LC_ALL
}

Well, executing { nolocale ; localefr } will kill ZSH!!!!
Pasting the individual export/unset commands seems to work ok.

Looking forward to ZSH 3.0.6 (or ZSH 3.2.x)...

## Faré | VN: Уng-Vû Bân   | Join the TUNES project!  http://www.tunes.org/ ##
## FR: François-René Rideau |    TUNES is a Useful, Not Expedient System     ##
## Reflection&Cybernethics  | Project for a Free Reflective Computing System ##
Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots.

So far, the Universe is winning.
                -- Rich Cook


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-14 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-14  0:34 bad interaction of zsh 3.0.5 with locale Fare Rideau

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).