Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2007 11:28:47 +0400
From:      Andrey Chernov <ache@freebsd.org>
To:        Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
Cc:        freebsd-i18n@freebsd.org
Subject:   Re: Why no non-latin TODIGIT mappings in UTF-8.src ?
Message-ID:  <20070528072847.GA18850@nagual.pp.ru>
In-Reply-To: <200705272241.l4RMfg07051300@juno.lyxys.ka.sub.org>
References:  <200705272241.l4RMfg07051300@juno.lyxys.ka.sub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070528072847.GA18850>