delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT byu DOT 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 AT cygwin DOT com |
Subject: | Re: Compiling strings with nonascii chars. |
References: | <991424 DOT 15222 DOT qm AT web58902 DOT mail DOT re1 DOT yahoo DOT com> <416096c61001252153g39ed4051xb10dc1f8990c26aa AT mail DOT gmail DOT com> |
In-Reply-To: | <416096c61001252153g39ed4051xb10dc1f8990c26aa@mail.gmail.com> |
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 |
--------------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 AT byu DOT 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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |