Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22565 - Application to solve the localedef problems made by Debian people (locale-gen)
Summary: Application to solve the localedef problems made by Debian people (locale-gen)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-10 11:26 UTC by Ingo -LaSombra- Hoffmann
Modified: 2024-01-12 11:08 UTC (History)
2 users (show)

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


Attachments
locale-gen script (locale-gen.,819 bytes, text/plain)
2003-06-10 11:27 UTC, Ingo -LaSombra- Hoffmann
Details
The configuration file (locale.gen,34 bytes, text/plain)
2003-06-10 11:28 UTC, Ingo -LaSombra- Hoffmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo -LaSombra- Hoffmann 2003-06-10 11:26:06 UTC
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.
Comment 1 Ingo -LaSombra- Hoffmann 2003-06-10 11:27:47 UTC
Created attachment 13072 [details]
locale-gen script
Comment 2 Ingo -LaSombra- Hoffmann 2003-06-10 11:28:38 UTC
Created attachment 13073 [details]
The configuration file
Comment 3 Ingo -LaSombra- Hoffmann 2003-06-10 11:29:44 UTC
Ah, I almost forgot, create the file /etc/locale.alias because it's needed for the original script.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-11 01:55:39 UTC
Ingo, what does this do exactly?
Comment 5 Ingo -LaSombra- Hoffmann 2003-06-11 03:21:24 UTC
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. 
Comment 6 Ingo -LaSombra- Hoffmann 2003-06-13 12:04:12 UTC
Got it?
Comment 7 Ingo -LaSombra- Hoffmann 2003-06-20 11:01:54 UTC
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
Comment 8 Ingo -LaSombra- Hoffmann 2003-08-01 05:07:40 UTC
Seemant,

Any news about that?
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-02 07:20:43 UTC
Azarah, looks like this might be a good addition to glibc's ebuild
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-07 08:05:32 UTC
OK, I will try to get to in in the next week or two.
Comment 11 Daniel Robbins (RETIRED) gentoo-dev 2003-12-30 10:16:14 UTC
It's been three months now.
Comment 12 Ingo -LaSombra- Hoffmann 2003-12-30 13:22:08 UTC
Yepz... unfortunately but I guess the problem I had was fixed...
:-)
Comment 13 Ricardo Nuno 2004-04-27 19:17:05 UTC
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.
Comment 14 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 01:04:07 UTC
az, do you still plan on adding this, or is it unlikely?
Comment 15 Michal Suchanek 2006-02-23 05:43:36 UTC
It would be also useful for adding new locales without rebuilding glibc.
Comment 16 SpanKY gentoo-dev 2006-04-17 01:19:41 UTC
fixed in glibc-2.4-r2
Comment 17 Gschwind 2006-05-04 05:50:34 UTC
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.
Comment 18 SpanKY gentoo-dev 2006-05-05 17:29:16 UTC
already been reported as Bug 132220
Comment 19 Larry the Git Cow gentoo-dev 2024-01-12 11:08:26 UTC
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(-)