X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_WC,TW_WW,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D666FCA.9070301@redhat.com>
Date: Thu, 24 Feb 2011 07:48:42 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Mg3a - a version of Mg2a developed on Cygwin
References: <35i9m6pt07r66fib882etg5tgirkr413co@4ax.com> <0105D5C1E0353146B1B222348B0411A209DAA0FF98@NIHMLBX02.nih.gov> <fklam6ptp2uu7o029pkng8e4vc953fnfme@4ax.com> <ijmam6h3u1vq8nepvdlfo3hcb5feoeihav@4ax.com> <20110224085617.GM9392@calimero.vinschen.de> <4nccm61h5q3f207me4u69qfk6i0vqrd2f2@4ax.com> <lifcm6tdv6807ase18ih894udcgqelnaq9@4ax.com> <20110224115056.GT9392@calimero.vinschen.de>
In-Reply-To: <20110224115056.GT9392@calimero.vinschen.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig1EE2F0B374544F5E44845864"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig1EE2F0B374544F5E44845864
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 02/24/2011 04:50 AM, Corinna Vinschen wrote:
> On Feb 24 12:19, Bengt Larsson wrote:
>> Bengt Larsson wrote:
>>> I don't use surrogates. I only use UTF-8 and UTF-32. But using cygwin's
>>> wcwidth may be worth thinking about. I suppose it will be consistent
>>> with mintty that way; otherwise not?
>>
>> And: is wcwidth always available in modern Unices? How do you find out
>> these things? I mean practically available.
>=20
> wcwidth and wcswidth are XSI extensions, so they are optional.  As for
> finding out, that's usally nicely done by autoconf'ing your project.

And if you don't mind [L]GPL licensing, gnulib provides a source code
replacement that guarantees wide character support on all modern porting
platforms (particularly useful for mingw, which is sorely lacking on
this front); and is currently working on introducing a wwchar_t type
that is guaranteed to be UTF-32 even on cygwin (this is how coreutils
gets wide character support for things like wc).  Portions of that
gnulib code are incorporated into libunistring.  But from the sounds of
your program's license, I'm not sure you can take advantage of gnulib or
libunistring.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig1EE2F0B374544F5E44845864
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNZm/KAAoJEKeha0olJ0Nq5nsH/0ZRg3xUR9hovHo4QYh3IJws
mePCi019fTbgUSz5hkDS9i03RoT35yeGleDQfwiJS4gt3GewXDm83cjihEn7IRZJ
GKC31Zps17K+/yDUJLCFcHhsRJQHAK0pFjA9u4nyNlhNejefJkmzEODHyfYnB0D/
8Pi52npprA9HxA632Vzju2FmhqVqePWyPGEzoPf7HKQsTXvrBN0qxNP7gHDpfd5c
AyKeZyB1VoRhfCwPnYYfB8nvz29G9Wh3/hjGuPKmNyA9wvnRwNnN2OOxzqF5Ach3
acHlY8WgTq7edYV/3tKCB4onjwKiglIjEaxk3AbtbjRRoxpKVGUeRtfbu+SU7FA=
=/bji
-----END PGP SIGNATURE-----

--------------enig1EE2F0B374544F5E44845864--
