[PATCH] Hangul Jamo width fix
Jungshik Shin
jshin@mailaps.org
Sat May 4 10:10:00 GMT 2002
Hi,
Here's a simple one-line patch(?) to fix the wcwidth() of Hangul
medial vowels and trailing consonants. Currently, it's set to
the default value of 1, but they should be given zero width
because they behave like non-spacing combining characters
following leading consonants (acting as base characters).
Markus Kuhn's wcwidth.c implementation has had this.
Xterm-16x and Vim6.1 make use this to deal with Korean Hangul
Jamos in U+1100 block. (see http://jshin.net/i18n/korean/hunmin.html)
Thank you,
Jungshik Shin
-----------
Index: libc/localedata/charmaps/UTF-8
===================================================================
RCS file: /cvs/glibc/libc/localedata/charmaps/UTF-8,v
retrieving revision 1.7
diff -u -r1.7 UTF-8
--- libc/localedata/charmaps/UTF-8 6 Jun 2001 12:30:36 -0000 1.7
+++ libc/localedata/charmaps/UTF-8 4 May 2002 17:04:11 -0000
@@ -27367,6 +27367,7 @@
<U1039> 0
<U1058>...<U1059> 0
<U1100>...<U115F> 2
+<U1160>...<U11FF> 0
<U17B7>...<U17BD> 0
<U17C6> 0
<U17C9>...<U17D3> 0
--------------------
More information about the Libc-alpha
mailing list