Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19052 - Incorrect locale settings after merging new version of glibc
Summary: Incorrect locale settings after merging new version of glibc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-09 13:44 UTC by Yuri Enshin
Modified: 2003-04-18 13:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Enshin 2003-04-09 13:44:46 UTC
While merging new version of glibc, the locale-archive file automaticaly
replaced with new version. All user-defined locales (like my 'ru_RU.cp1251'),
which not default, destroyed. It's not a big problem to run localedef again,
but, maybe, showing warning after emerging, somthing like: "Check your locale
settings" will be a good idea.
And, if I do 'emerge -u world', and glibc one of updated packages, all packages
after glibc will be build with incorrect locale settings (non-existent locale).
I think, this not problem for many packages, but some gnome parts produce tons
of warnings in this case (not sure about some missfunctionality in this packages
after building with incorrect locale).

P.S. Sorry for my english :)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-10 15:27:11 UTC
Could we please get somebody who knows a bit more than squid about locales to
help out here ? =)

I do not think it will be a good idea to add /usr/lib/locale/ to PACKAGE_MASK,
locale-archive is binary anyhow.
Comment 2 Yuri Enshin 2003-04-10 21:39:48 UTC
This condition not very often anyway. It's specific for languages with many encodings, like russian (hehe, 6 or 7 different encodings for 33 letters in language :)). Maybe, just add at the end of ebuild the simple test (something like locale -a | grep $LANG). If test passed (current locale exists after emerge), continue normally. If test failed, pause emerge as after upgrading portage, and ask user for correct locale definition or LANG settings?
Comment 3 Markus Bertheau (RETIRED) gentoo-dev 2003-04-12 20:51:22 UTC
How exactly does it hurt if packages are compiled with a nonexistant locale set?

And imho people who do localedef themselves have to remember to recreate the locale after a glibc update themselves :)
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-18 13:25:43 UTC
closing