This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Hangul Jamo width fix



  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
--------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]