Bug 23699 - broken locale in glibc 2.2-9
Summary: broken locale in glibc 2.2-9
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc   
(Show other bugs)
Version: 7.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-01-10 10:11 UTC by Maxim F. Ischenko
Modified: 2016-11-24 15:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-10 13:25:18 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
output of strace command (4.08 KB, text/plain)
2001-01-10 13:08 UTC, Maxim F. Ischenko
no flags Details

Description Maxim F. Ischenko 2001-01-10 10:11:16 UTC
After I upgraded my Linux box from glibc 2.2-5 to 2.2-9 locale got broken.

I'm using russian locale ru_RU.KOI8-R.    
To check the locale I use 'locale mon' command.    
After upgrade it's output changed from russian back to english.    
Utitlities like 'date' use english timenames instead of russians and so
With glibc 2.2-5 all was fine.    
I tried to recompile the locale with    
localedef -c -i ruRU -f KOI8-R ru_RU.KOI8-R    
but it don't help.

Comment 1 Jakub Jelinek 2001-01-10 12:43:14 UTC
Cannot reproduce this.
$ rpm -q glibc
$ LANG=ru_RU.KIO8-R locale mon
$ LANG=en_US locale mon
$ LANG=cs_CZ locale mon
Can you please look if you have /usr/lib/locale/ru_RU.koi8r/ directory
populated, perhaps strace that locale
(ie. LC_ALL=ru_RU.KIO8-R strace -o log locale mon)
to see what's going on?

Comment 2 Maxim F. Ischenko 2001-01-10 13:08:13 UTC
Created attachment 7364 [details]
output of strace command

Comment 3 Maxim F. Ischenko 2001-01-10 13:12:01 UTC
I got this:

# LANG=cs_CZ locale mon
# LC_ALL= LANG=ru_RU.KOI8-R strace -o log locale mon
# LC_ALL=ru_RU.KOI8-R LANG=ru_RU.KOI8-R strace -o log locale mon
<line of russian names which NN refuse to paste>

Seems that it works when LC_ALL is set.
But I don't want to set LC_ALL cause this will ignore all others LC_ categories.
Log file that strace produced is attached to this message.

I've restored original glibc:
# rpm -V glibc
.......T   /usr/lib/locale/ru_RU.koi8r/LC_ADDRESS
.......T   /usr/lib/locale/ru_RU.koi8r/LC_COLLATE
.......T   /usr/lib/locale/ru_RU.koi8r/LC_CTYPE
.......T   /usr/lib/locale/ru_RU.koi8r/LC_IDENTIFICATION
.......T   /usr/lib/locale/ru_RU.koi8r/LC_MEASUREMENT
.......T   /usr/lib/locale/ru_RU.koi8r/LC_MESSAGES/SYS_LC_MESSAGES
.......T   /usr/lib/locale/ru_RU.koi8r/LC_MONETARY
.......T   /usr/lib/locale/ru_RU.koi8r/LC_NAME
.......T   /usr/lib/locale/ru_RU.koi8r/LC_NUMERIC
.......T   /usr/lib/locale/ru_RU.koi8r/LC_PAPER
.......T   /usr/lib/locale/ru_RU.koi8r/LC_TELEPHONE
.......T   /usr/lib/locale/ru_RU.koi8r/LC_TIME
.......T   /usr/share/locale/locale.alias

Comment 4 Jakub Jelinek 2001-01-10 13:18:55 UTC
Are you sure you don't have LC_TIME set in the environment?
$ LC_ALL= LC_TIME= LANG=es_ES locale mon
$ LC_ALL= LC_TIME=C LANG=es_ES locale mon

Comment 5 Maxim F. Ischenko 2001-01-10 13:25:14 UTC
Yes, I forget about LC_TIME. ;-)

Sorry for false alarm.

Note You need to log in before you can comment on or make changes to this bug.