Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90208 - UTF-8 guide
Summary: UTF-8 guide
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Desktop Configuration Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-24 02:36 UTC by Torsten Veller (RETIRED)
Modified: 2005-06-02 11:40 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 Torsten Veller (RETIRED) gentoo-dev 2005-04-24 02:36:58 UTC
~l. 230:
+There are two environment variables that need to be set in order to use                                                                                                                      
+our new UTF-8 locales: <c>LANG</c> and <c>LC_ALL</c>

No, only one of them.
For details <http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3>.

+<pre caption="Demonstration /etc/env.d/02locale">                                                                                                                                            
+<comment>(As always, change "en_GB.UTF-8" to your locale)</comment>                                                                                                                          
+LC_ALL="en_GB.UTF-8"                                                                                                                                                                         
+LOCALE="en_GB.UTF-8"                                                                                                                                                                         
</pre>

what's LOCALE? typo?

just set:
LANG="en_GB.UTF-8"
if you want some special settings add:
LC_COLLATE="POSIX"
LC_MESSAGES="de_DE.UTF-8"

(try:
LC_COLLATE="C" ls -a
LC_COLLATE="en_GB.UTF-8" ls -a
)
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-06-02 11:40:38 UTC
Indeed, also confirmed by the GNU GLIBC Manual
(http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories)

I've used LC_ALL as primary variable as it also overrides the LANG setting
(which was the original intention of the guide in the first place).