Re: Ctype patch for review

"Petr Hroudný" <[email protected]>
Newsgroups gmane.os.freebsd.devel.internationalization
Message-ID <[email protected]>
2007/9/16, Andrey Chernov <[email protected]>:
> The problem is: currently our single byte ctype functions are broken for
> wide characters locales in the argument range >= 0x80 - they may return
> false positives.
>
> For example, for UTF-8 locale we currently have:
> iswspace(0xA0)==1 and isspace(0xA0)==1
> (because iswspace() and isspace() are the same code)
> but must have
> isspace(0xA0)==0

This is exactly what happens on other OSes and I agree this is the
right behaviour
for UTF-8. However, we must ensure, that:

for C locale:  isspace(0xA0)==0
for ISO8859-* locales: isspace(0xA0)==1
for UTF-8 locales: isspace(0xA0)==0

Regards, Petr.
_______________________________________________
[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.