Why no non-latin TODIGIT mappings in UTF-8.src ?

Andrey Chernov ache at freebsd.org
Mon May 28 12:49:46 UTC 2007


On Mon, May 28, 2007 at 02:34:56PM +0200, Wolfgang Zenker wrote:
> > There is no POSIX function to extract TODIGIT info, so it is useless for 
> > now.
> 
> Ok, so the mklocale src files that DO provide additional TODIGIT mappings
> (like e.g. am_ET.UTF-8.src or ja_JP.SJIS.src) do so just to be prepared
> for the day we can use them?

Depends on POSIX move.

> I had imagined that TODIGIT would be used for a locale-aware version of
> digittoint(3) or something like that. 

Our extension digittoint(3) manpage says:
If the given character was not a digit as defined by isxdigit(3),
the function will return 0. 
So, the same 0-9 restriction + A-F

> What would be a good place to read
> up about how much can be localised with locales and how much of it we
> currently (and maybe in the near future) support?

The Open Group Base Specs Issue 6
http://www.opengroup.org/onlinepubs/009695399/toc.htm

-- 
http://ache.pp.ru/


More information about the freebsd-i18n mailing list