Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319637 - add UTF-8 example for /etc/locale.gen, add note about "locale -a"
Summary: add UTF-8 example for /etc/locale.gen, add note about "locale -a"
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/guide-lo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 23:15 UTC by Hans-Jürgen Becker
Modified: 2010-05-14 21:57 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 Hans-Jürgen Becker 2010-05-13 23:15:40 UTC
The document (and it's translations) related to this bug report (compare URL) refers to setting LC_* values to locale de_DE.UTF-8.

While this works at first sight, random strage errors occure. The reason is that the locale setting should *not* read de_DE.UTF-8 but de_DE.utf8!

Please correct.

Many greets and thanks,
Hans-Jürgen

PS. i don't know how to but if this thingy has been a wiki or something editable like that i'd have corrected this issue by myself ;)

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-05-13 23:23:33 UTC
can you give an example of one "random failure" to reproduce, please?
Comment 2 Hans-Jürgen Becker 2010-05-14 11:22:34 UTC
(In reply to comment #1)
> can you give an example of one "random failure" to reproduce, please?
> 

"ramdom failures" were logins to different machines via ssh where sometimes some characters (german umlauts) didn't work. Further investigation showed that this was not a local issue but a remote one (locale of remote machine not configured correctly).

Please excuse and don't change the documentation the way i suggested before.

I'd like to suggest an improvement for the mentioned documentation:

* add de_DE.UTF-8 to "Code Listing 3.7: Adding locales to /etc/locale.gen"
(mine contained de_DE.utf8 which lead me to the wrong assumption that it *must* be de_DE.utf8)

* Add a note that "the output of 'locale -a' shows utf8 instead of UTF-8" at the end of section 3 near "You can verify that your selected locales are available by running locale -a."
Comment 3 nm (RETIRED) gentoo-dev 2010-05-14 21:57:32 UTC
Works for me as-is. No need to note any differences from one locale to the other. They work just fine no matter how you put 'em in.