Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173286 - /etc/locale.gen comments are wrong on file format
Summary: /etc/locale.gen comments are wrong on file format
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 21:06 UTC by Erik Hovland
Modified: 2007-04-04 02:45 UTC (History)
0 users

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


Attachments
corrects problem with comments (etc-locale_gen.patch,578 bytes, patch)
2007-04-03 21:10 UTC, Erik Hovland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Hovland 2007-04-03 21:06:00 UTC
According to the comments in /etc/locale.gen the format for the file is (and I quote):
"The format is <locale>/<charmap>, where <locale> is a locale from the /usr/share/i18n/locales directory, and <charmap> is name of one of the files in /usr/share/i18n/charmaps/. All blank lines and lines starting with # are ignored. Here is an example:
en_US/ISO-8859-1"

When, according to the document:
http://www.gentoo.org/doc/en/guide-localization.xml

The correct format is (for example):
en_US ISO-8859-1

Note the space instead of the '/'. Someone should change the comments or just point to the localization document.

Reproducible: Always
Comment 1 Erik Hovland 2007-04-03 21:10:21 UTC
Created attachment 115391 [details, diff]
corrects problem with comments

The comments in the file are wrong. This patch fixes that.
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2007-04-03 23:20:47 UTC
Documentation is correct, file comments are wrong (tried slash, didn't work).
Comment 3 Dan 2007-04-04 00:01:31 UTC
# The format of each line:
# <locale> <charmap>

here... glibc-2.5-r0
Comment 4 SpanKY gentoo-dev 2007-04-04 02:45:55 UTC
/etc/locale.gen has never read that way ... my guess is you copied the old locales.build file over top of locale.gen