This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [astavitsky@yahoo.com: Bug#96928: locale -a reports incorrect locale name ru_RU.koi8r]
- To: GOTO Masanori <gotom at debian dot or dot jp>
- Subject: Re: [astavitsky@yahoo.com: Bug#96928: locale -a reports incorrect locale name ru_RU.koi8r]
- From: Ben Collins <bcollins at debian dot org>
- Date: Wed, 23 May 2001 11:33:06 -0400
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <20010521092059.F18898@visi.net> <wtwu22cyuds.wl@fe.dis.titech.ac.jp>
On Thu, May 24, 2001 at 12:09:35AM +0900, GOTO Masanori wrote:
> At Mon, 21 May 2001 09:20:59 -0400,
> Ben Collins wrote:
> > I got the following Debian bug report. I'm not sure of the behavior
> > thought. Take for example:
> >
> > blimpo:~# localedef -i ru_RU -c -f KOI8-R ru_RU.KOI8-R
> > blimpo:~# locale -a | grep ru_RU
> > ru_RU.koi8r
> > blimpo:~# ls -ld /usr/lib/locale/ru_RU.koi8r
> > drwxr-xr-x 3 root root 4096 May 9 21:16 /usr/lib/locale/ru_RU.koi8r
> > blimpo:~# LANG=ru_RU.koi8r perl -e 'print "Hello\n";'
> > perl: warning: Setting locale failed.
> > perl: warning: Please check that your locale settings:
> > LANGUAGE = (unset),
> > LC_ALL = (unset),
> > LANG = "ru_RU.koi8r"
> > are supported and installed on your system.
> > perl: warning: Falling back to the standard locale ("C").
> > Hello
> > blimpo:~# LANG=ru_RU.koi8-r perl -e 'print "Hello\n";'
> > Hello
> > blimpo:~#
>
> This is only gconv module name alias issue.
> If `KOI8R' is widely used, this patch should be applied.
Well, I (and I presume the user who filed the bug report) assume that
any output from "locale -a" should be a valid value for any of the
locale env vars (such as LANG and LC_*). If this isn't a safe
assumption, then perhaps something needs to be clarified with this
output.
Ben
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'