This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [Fwd: [1.7] wcwidth failing configure tests]
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: newlib at sourceware dot org, cygwin at cygwin dot com
- Date: Tue, 12 May 2009 17:56:47 +0100
- Subject: Re: [Fwd: [1.7] wcwidth failing configure tests]
- References: <20090512165404.GW21324@calimero.vinschen.de>
> And here's another question. ÂThe utf8*.h files claim they have been
> generated from the unicode.txt file of the Unicode 3.2 standard. ÂDo we
> have the script which generated the utf8*.h files? ÂCan we regenerate
> the files to match the current Unicode 5.1 standard?
There's Markus Kuhn's wcwidth implementation, which says it's based on
Unicode 5.0:
http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
Trouble is, there's the thorny issue of the "CJK Ambiguous Width"
category of characters, which consists of things like Greek and
Cyrillic letters as well as line drawing symbols. Those have a width
of 1 in Western use, yet with CJK fonts they have a width of 2. That's
why Markus Kuhn's code includes the mk_wcswidth_cjk() variant.
Andy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/