X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B5EE8DE.1070005@byu.net>
Date: Tue, 26 Jan 2010 06:06:38 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Compiling strings with nonascii chars.
References: <991424.15222.qm@web58902.mail.re1.yahoo.com> <416096c61001252153g39ed4051xb10dc1f8990c26aa@mail.gmail.com>
In-Reply-To: <416096c61001252153g39ed4051xb10dc1f8990c26aa@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enigE7987AA88FB61A12AF7BA13E"
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

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

According to Andy Koppe on 1/25/2010 10:53 PM:
>> let _ =3D print_DEBUG "Fin du chargement dynamique =C3=A9ventuel"
>>
>>
>> I have done some testing and it looks like I get an error on any string =
literal which contains non-ascii chars.

> This might be a case of the source being
> encoded in ISO-8859-1 while the compiler tries to interpret it as
> UTF-8.

Another thing to consider - use escape sequences (octal or hex) rather
than literal characters, to make your source file ASCII-only; this has the
benefit of making the encoding of the character literal independent of the
encoding of the compiler, so your code is portable to other machines where
the compiler is run with a different locale.

--=20
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net


--------------enigE7987AA88FB61A12AF7BA13E
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.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkte6N4ACgkQ84KuGfSFAYB4mwCeMfUisCLJKLkptOuMGvQaSLoS
lBoAoNErvXuGtcbEgLtsesMkELmmdmqJ
=CNi4
-----END PGP SIGNATURE-----

--------------enigE7987AA88FB61A12AF7BA13E--
