This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Using localedef to define custom charmaps
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 11 Jun 2018 12:49:32 -0400
- Subject: Re: Using localedef to define custom charmaps
- References: <1aff7491-e19d-6bee-a8b2-7f15c93703ec@redhat.com>
On 06/07/2018 11:31 AM, Florian Weimer wrote:
> Is it currently possible to use localedef to define custom charmaps?
Sure, just write one and put it into the default install path.
> The command line interface suggests this possibility.
Yes.
> But I don't see anything storing the tables in locale data, and it
> seems that setting a locale in glibc always loads the corresponding
> gconv/iconv module
> If that's really true, then why do we have charmap files? Only some
> of them are used for generating iconv/gconv modules. Is it about
> POSIX conformance at the command line interface level?
Well, we need the charmap file to translate from the internal
representation to the character set we are using?
However, once you've done the work of using the charmap to build
the output locale data ... why do you need it anymore?
Conversions will be handled by gconv converters after that.
Cheers,
Carlos.