Hey ya guys, After a few days trying to use localedef without any success after re-emerging my glibc, I remembered my Debian days and 'ported' the locale-gen to solve my problem and I guess Gentoo could also do this to help everybody who fought this fight before, what about it? What about including locale-gen to Gentoo? Attached is the locale-gen script and my /etc/locale.gen to help. Thanks in advance, Ingo -LaSombra- Hoffmann Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 13072 [details] locale-gen script
Created attachment 13073 [details] The configuration file
Ah, I almost forgot, create the file /etc/locale.alias because it's needed for the original script.
Ingo, what does this do exactly?
Seemant, It compiles the locales contained on /etc/locale.gen in an easy way. What you do is 1. Add your locale on /etc/locale.gen, e.g. pt_BR ISO-8859-1 2. Execute locale-gen It'll compile without any problems the locales you want. I think it's a good way to smooth the glibc updates as it seems to reset the locales after it.
Got it?
Well, I guess you guys didn't understand. I'll try to explain better. One day I updated glibc and my locales was damaged, locale -a just reported POSIX, C and ar_AE (arabic). So I tried to use localedef without success and, being an ex-Debian user, I remembered about a utility that regenerates the locales after any glibc update. This utility was locale-gen, a script that read from /etc/locale.gen the locales and codepages you want to be available on your system. So I copied the script to my Gentoo system, created /etc/locale.gen and it worked perfectly. I corrected some GTK+ 2 problems with accents and an annoying perl warning about the locales. Because of that I proposed that Gentoo could use this script to regenerates the locales in an easy way for users and for future glibc updates. As Gentoo uses debianutils, I don't see any problem in using this helpful script. Thanks in advance for you patience :), Ingo -LaSombra- Hoffmann
Seemant, Any news about that?
Azarah, looks like this might be a good addition to glibc's ebuild
OK, I will try to get to in in the next week or two.
It's been three months now.
Yepz... unfortunately but I guess the problem I had was fixed... :-)
I'm having the same problem that Ingo had locale -a gives me POSIX, C I'm going to try to use this script, I ill report if it solves my problem.
az, do you still plan on adding this, or is it unlikely?
It would be also useful for adding new locales without rebuilding glibc.
fixed in glibc-2.4-r2
locale-gen doesn't work when locale is set. resume of my env: LC_ALL=fr_FR.utf8 when I use locale-gen like : localhost ~ # locale-gen * Unable to parse the output of your localedef utility. * File a bug about this issue and include the output of 'localedef --help'. I can fix the probleme with : LC_ALL=POSIX locale-gen I think it's bug, but I don't know if I must fill new bug.
already been reported as Bug 132220
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c363d614a34eea87a18d710d9f6f1b38650ba93 commit 5c363d614a34eea87a18d710d9f6f1b38650ba93 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-12 11:05:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-12 11:07:06 +0000 scripts: drop USE=userlocales commit 486575836bbd74bc6f35d06d31ddd45b108e5f2d Author: Christian Heim <phreak@gentoo.org> Date: Sat Jan 20 14:21:41 2007 +0000 USE="userlocales" got deprecated with the introduction of /etc/locale.gen into sys-libs/glibc. commit 75120cd1a2491a7ea11f2657a11fc9267c111af0 Author: Mike Frysinger <vapier@gentoo.org> Date: Mon Apr 17 16:52:57 2006 +0000 Kill USE=userlocales and replace with Debian locale-gen #22565. (Portage version: 2.1_pre9) (Signed Manifest commit) Bug: https://bugs.gentoo.org/22565 Signed-off-by: Sam James <sam@gentoo.org> scripts/bootstrap.sh | 3 --- 1 file changed, 3 deletions(-)