[PATCH] Hangul Jamo width fix
Jungshik Shin
jshin@mailaps.org
Sat May 4 22:03:00 GMT 2002
On Sat, 4 May 2002, Jungshik Shin wrote:
> 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).
To further back-up my proposed patch, I found another implementation
that does exactly the same thing as I'm proposing. u_charCellWidth()
in ICU returns U_ZERO_WIDTH for Hangul medial vowels and trailing
consonants while returning U_FULL_WIDTH for Hangul leading consonants.
(ref. <http://oss.software.ibm.com/icu/apiref/uchar_8h.html#a360>)
Jungshik Shin
More information about the Libc-alpha
mailing list