Cannot build custom locale with utf-8 charset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I am trying, without success, to compile a custom locale for the utf-8
character set.  I have issued this command:

localedef --no-archive -f UTF-8 -i
/usr/share/i18n/locales/en_CA@yyyy-mmm-dd en_CA@yyyy-mmm-dd.utf8

which produces the requisite files without reporting an error but
which none-the-less insists on using the iso-8859-1 charset:

LC_ALL=en_CA@yyyy-mm-dd locale charmap
ISO-8859-1

So, I tried this variant:

localedef --no-archive -f /usr/share/i18n/charmaps/UTF-8 -i
/usr/share/i18n/locales/en_CA@yyyy-mmm-dd en_CA@yyyy-mmm-dd.utf8
character map file `/usr/share/i18n/charmaps/UTF-8' not found: No such
file or directory
no output file produced because warnings were issued

Missing UTF-8 file?

ll /usr/share/i18n/charmaps/UTF-8*
.  .  .
-rw-r--r-- 1 root root 240800 Aug 27 09:28 UTF-8.gz
.  .  .

Ok, let us try again:

localedef --no-archive -f /usr/share/i18n/charmaps/UTF-8.gz -i
/usr/share/i18n/locales/en_CA@yyyy-mmm-dd en_CA@yyyy-mmm-dd.utf8
/usr/share/i18n/charmaps/UTF-8.gz:1: syntax error in prolog: invalid
definition
/usr/share/i18n/charmaps/UTF-8.gz:2: syntax error in prolog: invalid
definition
memory clobbered past end of allocated block
Aborted

OK, fine, be that way.

cd /usr/share/i18n/charmaps
gunzip UTF-8.gz

ll UTF-8*
-rw-r--r-- 1 root root 1432559 Aug 27 09:28 UTF-8

localedef --no-archive -f /usr/share/i18n/charmaps/UTF-8 -i
/usr/share/i18n/locales/en_CA@yyyy-mmm-dd en_CA@yyyy-mmm-dd.utf8

LC_ALL=en_CA@yyyy-mm-dd locale charmap
ISO-8859-1

Ok, I give up.  What little tid-bit of information am I overlooking or
just not understanding correctly.  How do I get this thing built with
the UTF-8 character set?



-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@xxxxxxxxxxxxx
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux