Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132498 - locale-gen does not display correctly when using tabs or multiple spaces
Summary: locale-gen does not display correctly when using tabs or multiple spaces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 132629 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-06 14:32 UTC by Benno Schulenberg
Modified: 2006-05-07 21:44 UTC (History)
1 user (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 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. ***