ID: 28220 Updated by: [EMAIL PROTECTED] -Summary: mb_strwidth() width table is wrong Reported By: martin dot t dot kutschker at blackbox dot net Status: Open -Bug Type: Documentation problem +Bug Type: mbstring related PHP Version: Irrelevant New Comment:
This is a valid bug. # thanks Nuno. Previous Comments: ------------------------------------------------------------------------ [2004-04-29 18:48:17] martin dot t dot kutschker at blackbox dot net Description: ------------ The table describing the width of the characters is wrong if you compare it with the table for Unicode 4.0: http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt For the BMP the wide/full-width chars are: 1100..115F Hangul Choseong 2E80..4DB5 CJK radicals and CJK Ideograph Extension A 4E00..D7A3 CJK Ideographs, Yi syll. and Hangul syll. F900..FA6A CJK compatibiliy ideographs FE30..FE6B presentation forms, punctuations, etc. FF01..FF60 full-width Latin letters FFE0 FULLWIDTH CENT SIGN FFE1 FULLWIDTH POUND SIGN FFE2 FULLWIDTH NOT SIGN FFE3 FULLWIDTH MACRON FFE4 FULLWIDTH BROKEN BAR FFE5 FULLWIDTH YEN SIGN FFE6 FULLWIDTH WON SIGN I didn't check what the actual implementation does, but the docs are certainly wrong (if they mean Unicoe codepoints). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28220&edit=1
