Package: zsh
Version: 4.2.5-9
Severity: normal

This is the problem I reported here:

  http://www.zsh.org/mla/users/2005/msg00754.html

If I type

  foo() { some_command }
  LC_ALL=C foo

then this more or less sets LC_ALL to C in the current shell (appearing
as en environment variable only). Here's an example:

dixsept% locale
LANG=POSIX
LC_CTYPE=en_US.ISO8859-1
LC_NUMERIC="POSIX"
LC_TIME=en_DK
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
dixsept% env | grep LC_ALL
dixsept% set | grep LC_ALL
dixsept% foo() { echo $LC_ALL }
dixsept% LC_ALL=C foo
C
dixsept% echo $LC_ALL

dixsept% locale
LANG=POSIX
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
dixsept% env | grep LC_ALL
LC_ALL=C
dixsept% set | grep LC_ALL
dixsept% 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.10-20050517
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages zsh depends on:
ii  debconf                     1.4.52       Debian configuration management sy
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-8        Shared libraries for terminal hand
ii  passwd                      1:4.0.3-36   change and administer password and

Versions of packages zsh recommends:
ii  libcap1                       1:1.10-14  support for getting/setting POSIX.
ii  libpcre3                      5.0-1.1    Perl 5 Compatible Regular Expressi

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to