How to create a new locale with a new character set ?

How to create a new locale with a new character set ?

Post by Vincent GRENE » Thu, 21 Feb 2002 01:45:21

Hi All.

I need to create locale files for a specific locale (which already exist
with a standard character set), but with a new character mapping.

Reading the man pages for locale..., I understand that I have to create a
character mapping file (in /usr/share/i18n/charmaps, my distribution is a
RHS 6.2), a locale description file (in /usr/share/i18n/locales), compile it
with localedef, and strfmon() and strftime() should do all the stuff.

When I try to compile a locale definition for an existting locale (just to
try), I just get only the usage message. I tried specifying the charmap,
locale and repertoire files just by name or by full path.

The man pages are not very helpful. Where can I get more information on
localization ?




1. How to create a new locale on AIX 3.2 ?

   Has anobody tried to create a new locale on AIX3.2? What are the files
I need to create beside the charmap file(under /usr/lib/nls/charmap) and
the source file(under /usr/lib/nls/loc)?

   I need to create a new locale for Simplified Chinese, which is DBCS. Is it
possible to create the locale without specifying the input method?
I consider to bring the locale up first without worrying the input method.

   I tried to modify the Japanese locale, which is the only DBCS locale
provided. But when I compile using localedef, I have lots of the following

localedef [WARNING]: FILE: /usr/lib/nls/charmap/GB-2312, LINE: 261, CHAR: 1
Illegal character, 'a', in input file.  Character will be ignored.

  I guess the localedef check some invalid code range according to IBM-932
code, though I have modified the "base names" fields in the charmap according
to GB-2312 code. The GB-2312 charmap file is modified from IBM-932 charmap
file. Scan through the IBM-932 charmap file, I don't think there are lines
which state the IBM-932 valid code range. For example, 7f is the invalid
second byte. So, my question is, where do I specify the valid code range
for a code standard(for example, GB-2312), if there exists?


Institute of Systems Science, NUS

2. howto make glibc-1.09?

3. Creating a new character

4. is there a way to have var. assignments on cmd line affect only a builtin cmd?

5. Creating a new filesystem in a new partition

6. Can't mount CDROM drive

7. New items in the "Create new" menu

8. gopherd in Debian linux

9. Creating a new filesystem in a new partition

10. SLIP/PPP -->new kernel-->new compiler-->new make

11. New way to do QOS and limit bandwidth with Linux, new site , new software Howto Included

12. Asking for comments on new HOWTO, setting up a new domain