Why no non-latin TODIGIT mappings in UTF-8.src ?
Andrey Chernov
ache at freebsd.org
Mon May 28 07:40:16 UTC 2007
On Mon, May 28, 2007 at 12:41:42AM +0200, Wolfgang Zenker wrote:
> Hello all,
>
> I'm a bit surprised there are no TODIGIT mappings for non-latin scripts
> in src/share/mklocale/UTF-8. Is there a technical reason why this would
> be a bad idea or is it simply because noone did get around to define the
> mappings yet?
Because of POSIX isdigit():
digit
Define the characters to be classified as numeric digits.
In the POSIX locale, only:
0 1 2 3 4 5 6 7 8 9
shall be included.
In a locale definition file, only the digits <zero>, <one>, <two>,
<three>, <four>, <five>, <six>, <seven>, <eight>, and <nine> shall be
specified, and in contiguous ascending sequence by numerical value. The
digits <zero> to <nine> of the portable character set are automatically
included in this class.
--
http://ache.pp.ru/
More information about the freebsd-i18n
mailing list