Using localedef to define custom charmaps

Carlos O'Donell carlos@redhat.com
Mon Jun 11 16:49:00 GMT 2018


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.



More information about the Libc-alpha mailing list