This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
one more wcwidth tweak
- To: libc-alpha at sources dot redhat dot com
- Subject: one more wcwidth tweak
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 30 Oct 2000 20:40:43 +0100 (CET)
Markus Kuhn noticed that our wcwidth implementation in UTF-8 locales does
not yet return 0 for all so-called "ZERO WIDTH" characters. Here is a fix.
2000-10-29 Bruno Haible <haible@clisp.cons.org>
* charmaps/UTF-8: Set width of U200B to 0.
* charmaps/GB18030: Likewise.
*** glibc-20001010/localedata/charmaps/UTF-8.bak Mon Oct 2 16:10:07 2000
--- glibc-20001010/localedata/charmaps/UTF-8 Sun Oct 29 00:06:29 2000
***************
*** 55682,55687 ****
--- 55682,55689 ----
% "grep '^[^;]*;[^;]*;[^;]*;[^;]*;NSM;' UnicodeData.txt"
% - Format control characters have width 0; generated from
% "grep '^[^;]*;[^;]*;Cf;' UnicodeData.txt"
+ % - Zero width characters have width 0; generated from
+ % "grep '^[^;]*;ZERO WIDTH ' UnicodeData.txt"
WIDTH
<U0300>...<U034E> 0
<U0360>...<U0362> 0
***************
*** 55773,55779 ****
<U17C9>...<U17D3> 0
<U180B>...<U180E> 0
<U18A9> 0
! <U200C>...<U200F> 0
<U202A>...<U202E> 0
<U206A>...<U206F> 0
<U20D0>...<U20E3> 0
--- 55775,55781 ----
<U17C9>...<U17D3> 0
<U180B>...<U180E> 0
<U18A9> 0
! <U200B>...<U200F> 0
<U202A>...<U202E> 0
<U206A>...<U206F> 0
<U20D0>...<U20E3> 0
*** glibc-20001010/localedata/charmaps/GB18030.bak Mon Oct 2 16:09:49 2000
--- glibc-20001010/localedata/charmaps/GB18030 Sun Oct 29 00:07:24 2000
***************
*** 55806,55812 ****
<U180B>...<U180C> 0
<U180D>...<U180E> 0
<U18A9> 0
! <U200C>...<U200E> 0
<U200F> 0
<U202A>...<U202D> 0
<U202E> 0
--- 55806,55812 ----
<U180B>...<U180C> 0
<U180D>...<U180E> 0
<U18A9> 0
! <U200B>...<U200E> 0
<U200F> 0
<U202A>...<U202D> 0
<U202E> 0