X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <991424.15222.qm@web58902.mail.re1.yahoo.com> References: <991424 DOT 15222 DOT qm AT web58902 DOT mail DOT re1 DOT yahoo DOT com> Date: Tue, 26 Jan 2010 05:53:33 +0000 Message-ID: <416096c61001252153g39ed4051xb10dc1f8990c26aa@mail.gmail.com> Subject: Re: Compiling strings with nonascii chars. From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2010/1/25 Ed Keith: > > I am trying to build ocaml on cygwin and I hit the following error: > > > make[1]: Entering directory `/usr/src/ocaml-3.08.1/ocamldoc' > ../ocamlcomp.sh -pp './remove_DEBUG' -I ../parsing -I ../utils -I ../typi= ng -I . > ./driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../ot= herlibs > /str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I = ../othe > rlibs/graph -warn-error A -c odoc.ml > File "odoc.ml", line 88, characters 8-9: > String literal not terminated > make[1]: *** [odoc.cmo] Error 2 > > > The line in question is: > > > 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 l= iteral which contains non-ascii chars. Is there some flag needed to get gcc= to accept non-ascii chars? The line in question is in OCAML rather than C, so this isn't a gcc issue. I don't know what ocamlc's non-ASCII support is like, but generally you need to ensure that your locale setting matches the encoding of the source files. This might be a case of the source being encoded in ISO-8859-1 while the compiler tries to interpret it as UTF-8. Try invoking the build with LANG=3DC.ISO-8859-1. I'm assuming you're using Cygwin 1.7? Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple