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

Andrey Chernov <[email protected]>
Newsgroups gmane.os.freebsd.devel.internationalization
Message-ID <[email protected]>
On Mon, May 28, 2007 at 10:46:59AM +0200, Wolfgang Zenker wrote:
> Looking at our UTF-8.src, I see
> 
> $ grep DIGIT UTF-8.src
> DIGIT     '0' - '9'
> XDIGIT    '0' - '9'  'A' - 'F'  'a' - 'f'
> TODIGIT   < '0' - '9' : 0x0000 >
> TODIGIT   < 'A' - 'F' : 10 > < 'a' - 'f' : 10 >
> 
> It appears to me that isdigit() behaviour is controlled by the DIGIT
> keyword, not TODIGIT. However, I do admit that I don't understand completely
> how locale files are supposed to work. So where does e.g. iswdigit() get
> its character class information from, should that not be in the locale
> information as well somewhere?

There is no POSIX function to extract TODIGIT info, so it is useless for 
now.
todigit() is SCO extension and its manpage says:
The macro todigit returns the digit character corresponding to its integer 
argument. The argument must be in the range 0-9, otherwise the behavior is 
undefined.
iswdigit() have the same 0-9 restriction as isdigit() just accepts wint_t

-- 
http://ache.pp.ru/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-i18n
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.