Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132498

Summary: locale-gen does not display correctly when using tabs or multiple spaces
Product: Gentoo Linux Reporter: Benno Schulenberg <bensberg>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: trivial CC: ana_a_m_
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benno Schulenberg 2006-05-06 14:32:04 UTC
When /etc/locale.gen contains multiple spaces or tabs between <locale> and <charmap>, the locales appear to be generated fine but the display is mistaken:

# locale-gen
 * Generating 10 locales (this might take a while)
 *  (1/10) Generating en_GB.UTF-8...                                [ fine ] 
 *  (2/10) Generating en_GB.ISO-8859-1...                           [ fine ] 
 *  (3/10) Generating en_US....                                     [ fine ] 
 *  (4/10) Generating UTF-8...                                      [ fine ] 
 *  (5/10) Generating en_US....                                     [ fine ] 
 *  (6/10) Generating ISO-8859-1...                                 [ fine ] 
 *  (7/10) Generating es_ES.UTF-8...                                [ fine ] 
 *  (8/10) Generating UTF-8...                                      [ fine ] 
 *  (9/10) Generating es_ES...                                      [ fine ] 
 *  (10/10) Generating ISO-8859-1...                                [ fine ] 
 * Generation complete

Adding some extra echo statements shows this:

locales_to_generate='
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
en_US.UTF-8  UTF-8
en_US  ISO-8859-1
es_ES.UTF-8     UTF-8
es_ES           ISO-8859-1
nl_NL.UTF-8     UTF-8
nl_NL           ISO-8859-1
nl_BE.UTF-8     UTF-8
nl_BE           ISO-8859-1'

locales_disp='
en_GB.UTF-8
en_GB.ISO-8859-1
en_US. UTF-8
en_US. ISO-8859-1
es_ES.UTF-8     UTF-8
es_ES           ISO-8859-1
nl_NL.UTF-8     UTF-8
nl_NL           ISO-8859-1
nl_BE.UTF-8     UTF-8
nl_BE           ISO-8859-1'

The locales seem to have been generated correctly though:
# ll /usr/lib/locale
total 0
drwxr-xr-x 3 root root 408 May  6 23:20 en_GB/
drwxr-xr-x 3 root root 408 May  6 23:20 en_GB.utf8/
drwxr-xr-x 3 root root 408 May  6 23:20 en_US/
drwxr-xr-x 3 root root 408 May  6 23:20 en_US.utf8/
drwxr-xr-x 3 root root 408 May  6 23:20 es_ES/
drwxr-xr-x 3 root root 408 May  6 23:20 es_ES.utf8/
drwxr-xr-x 3 root root 408 May  6 23:20 nl_BE/
drwxr-xr-x 3 root root 408 May  6 23:20 nl_BE.utf8/
drwxr-xr-x 3 root root 408 May  6 23:20 nl_NL/
drwxr-xr-x 3 root root 408 May  6 23:20 nl_NL.utf8/
Comment 1 SpanKY gentoo-dev 2006-05-06 22:05:00 UTC
yeah, the display is sep from the actual generation ... so the messed up output is ok, your locales should be fine

updated the display sed to eat all extraneous whitespace, thanks for reporting
Comment 2 SpanKY gentoo-dev 2006-05-07 21:44:48 UTC
*** Bug 132629 has been marked as a duplicate of this bug. ***