delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT redhat DOT 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 AT cygwin DOT com |
Subject: | Re: Mg3a - a version of Mg2a developed on Cygwin |
References: | <35i9m6pt07r66fib882etg5tgirkr413co AT 4ax DOT com> <0105D5C1E0353146B1B222348B0411A209DAA0FF98 AT NIHMLBX02 DOT nih DOT gov> <fklam6ptp2uu7o029pkng8e4vc953fnfme AT 4ax DOT com> <ijmam6h3u1vq8nepvdlfo3hcb5feoeihav AT 4ax DOT com> <20110224085617 DOT GM9392 AT calimero DOT vinschen DOT de> <4nccm61h5q3f207me4u69qfk6i0vqrd2f2 AT 4ax DOT com> <lifcm6tdv6807ase18ih894udcgqelnaq9 AT 4ax DOT com> <20110224115056 DOT GT9392 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20110224115056.GT9392@calimero.vinschen.de> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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 AT redhat DOT 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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |