This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Hangul Jamo width fix
- From: Jungshik Shin <jshin at mailaps dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Sun, 5 May 2002 01:03:23 -0400 (EDT)
- Subject: Re: [PATCH] Hangul Jamo width fix
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