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: Ben Collins <bcollins at debian dot org>
- Subject: Re: [astavitsky@yahoo.com: Bug#96928: locale -a reports incorrect locale name ru_RU.koi8r]
- From: GOTO Masanori <gotom at debian dot or dot jp>
- Date: Thu, 24 May 2001 00:09:35 +0900
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <20010521092059.F18898@visi.net>
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.
--- iconvdata/gconv-modules.vanilla Thu May 24 00:02:22 2001
+++ iconvdata/gconv-modules Thu May 24 00:02:22 2001
@@ -415,6 +415,7 @@
# from to module cost
alias CSKOI8R// KOI8-R//
+alias KOI8R// KOI8-R//
module KOI8-R// INTERNAL KOI8-R 1
module INTERNAL KOI8-R// KOI8-R 1
2001-05-24 GOTO Masanori <gotom@debian.or.jp>
* iconvdata/gconv-modules: added KOI8R alias.
Regards,
-- GOTO Masanori