Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15532 - UTF-8 locale support
Summary: UTF-8 locale support
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-11 20:07 UTC by Vlad Berditchevskiy
Modified: 2003-02-15 16:25 UTC (History)
2 users (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 Vlad Berditchevskiy 2003-02-11 20:07:40 UTC
Currently, UTF-8 locale support is not enabled on Gentoo Linux by default (why?)
and it is not documented how to enable it. I think, it should be at least
mentioned in the installation instructions. I posted an explanation of this
problem and a solution in gentoo forums, please follow this URL:

http://forums.gentoo.org/viewtopic.php?p=204339
Comment 1 SpanKY gentoo-dev 2003-02-11 20:35:36 UTC
i dont want anything to do with UTF-8 ;) 
Comment 2 Vlad Berditchevskiy 2003-02-11 20:51:08 UTC
BTW: I think, the Gentoo documentation needs a short but comprehensive explanation about locales, charsets etc. Currently this topic is not mentioned anywhere.
Comment 3 Roman Majer 2003-02-12 03:27:15 UTC
"standard" locales are created by time of building glibc library. 
glibc is building this locales prior to localedata/SUPPORTED file ( 
and some additions defined by Makefile). 
 
So if some locale (like cs_CZ.UTF-8) is not mentioned there, 
the locale definition files are not added to catalogue. 
 
User CAN make the required locale definition by using glibc 
localedef utility, but glibc team cannot guarantee the safe 
using of this locale. 
 
So, 'cause gentoo uses "standard" compilled packages, some 
locale-coding is not there... 
 
Gentoo can patch the SUPPORTED file, but it is the way 
to hell, 'cause gentoo devs cannot guarantee that this 
injected locales will work for each USE x program combination. 
 
So better is to mention in some (localisation) guide how 
to "inject" the user locale-coding definition. 
 
As mentioned, simple adding the UTF-8 coding for known 
locale is easy: 
 
localedef -i <locale> -f <codepage> <output_file_or_default> 
fe.: localedef -i cs_CZ -f UTF-8 cs_CZ 
 
See the localedata/README file in glibc source directory 
 
localedef has no man page but localedef --help can be usefull. 
 
Anyway, this bug is not gentoo related and can be closed (maybe with 
some addition to localisation guide as resolve of this problem) 
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-15 16:25:34 UTC
Agreed.