You are not logged in.
Right now the locale shows POSIX is the default.
I need to use en_US.utf8 to use a Chinese input system, but how do I implement it? I typed locale -a and there is only en_IN.utf8.
what procedures shall I take to implement en_US.utf8?
When false is taken for true, true becomes false;
If non-being turns into being, being becomes non-being.
Pages full of fantastic talk
Penned with bitter tears;
All men call the author mad,
None his message hears.
Offline
To create en_US.UTF-8 do this:
localedef -i en_US -f UTF-8 en_US.UTF-8
All of your mips are belong to us!!
Offline
I found on this page:
http://neil.chong.com.hk/viewthread.php?tid=3
which has two steps more before running localedef -i en_US -f UTF-8 en_US.UTF-8:
# cd /usr/share/i18n/locales
# cp ../charmaps/UTF-8.gz ./
# gunzip UTF-8.gz
#localedef -i en_US -f UTF-8 en_US.UTF-8
Is it necessary? After I ran these codes, I now can 'grep' en_US.utf8 with locale -a command. But in /usr/share/i18n/locales
there is still no en_US.utf8. Anything goes wrong? I thought there should be a file callled en_US.utf8 that directory.
Do you have any suggestions?
When false is taken for true, true becomes false;
If non-being turns into being, being becomes non-being.
Pages full of fantastic talk
Penned with bitter tears;
All men call the author mad,
None his message hears.
Offline
Observation #1)
There are no files with UTF in their names in /usr/share/i18n/locales, so en_US.utf8 is not supposed to be created in there.
Observation #2)
I got en_US.UTF-8 working without copying the charmap file before the localedef command.
[rohan ref]$ ls /usr/share/i18n/locales|grep -i utf
[rohan ref]$ locale charmap
ISO-8859-1
[rohan ref]$ LC_ALL=en_US.UTF-8
[rohan ref]$ locale charmap
UTF-8
[rohan ref]$
All of your mips are belong to us!!
Offline
Hi !
I need UTF-8 for a Zope/Plone2 server that is displaying French, Chinese & English content.
On first attempt, here what i got when launching the server :
$ ../runzope
/usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is is deprecated. Please use the random module.
DeprecationWarning)
Error: the specified locale "utf-8" is not supported by your system.
See your operated system documentation for more information on your locale support.
Since 'locale' showed "us_US" then, i changed it to "fr_FR.UTF-8" :
$ export LANG=fr_FR.UTF-8
$ locale charmap
UTF-8
What i don't get is that Zope still write the same message (& still can't start). It will start only after i changed from "UTF-8" to "fr_FR" in its conf file.
Does someone know what else should I do for Zope find my AL system supports "utf-8" ?
Thanks for any tip you may have
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline
just a guess,
you can only use locales listed with "locale -a"
arch + gentoo + initng + python = enlisy
Offline
Please try changing to "fr_FR.UTF-8" in Zope's config. "UTF-8" is not a locale on its own.
All of your mips are belong to us!!
Offline
Thank you for advices
Forgot to reply earlier :oops:
he he, got everything running fine after i let everything related to "LOCAL" to default choices
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline