summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/iswctype.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out 2nd part of wrong iswascii() change in prev. commit.ache2007-10-231-1/+1
|
* The problem is: currently our single byte ctype(3) functions are brokenache2007-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | for wide characters locales in the argument range >= 0x80 - they may return false positives. Example 1: 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 iswspace(0xA0)==1 and isspace(0xA0)==0 (because there is no such character and all others in the range 0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte range because our internal wchar_t representation for UTF-8 is UCS-4). Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may return false positives (must be 0). (because iswalpha() and isalpha() are the same code) This change address this issue separating single byte and wide ctype and also fix iswascii() (currently iswascii() is broken for arguments > 0xFF). This change is 100% binary compatible with old binaries. Reviewied by: i18n@
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Move wcwidth() to separate file, it doesn't belong to iswctype.c at allache2002-08-171-10/+0
|
* According to SUSv2, wcwidth() should return -1 for non-printing charactersache2002-08-171-1/+1
|
* Cosmetic - remove unneded brackets and #undefache2002-08-171-20/+19
|
* wcwidth: fix espression to work correctly with SWIDTH0ache2002-08-171-2/+4
|
* Add iswctype wcwidth function codekeichii2002-08-161-0/+10
| | | | | | | Submitted by: clkao@clkao.org Reviewed by: keichii Obtained from: NetBSD MFC after: 1 month
* Implement the missing <wctype.h> functions: isw*() (iswalnum() etc.),tjr2002-08-051-0/+213
towlower() and towupper() required by ISO C90 Amd. 1. iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(), iswrune() and iswspecial() have also been implemented for consistency with the BSD extensions in <ctype.h>.
OpenPOWER on IntegriCloud