From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 8C121BBAF for ; Thu, 15 Jun 2006 12:22:50 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k5FAMnQp016065 for ; Thu, 15 Jun 2006 12:22:50 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA26247 for ; Thu, 15 Jun 2006 12:22:49 +0200 (MET DST) Received: from cesarox.flet.keio.ac.jp (cesarox.flet.keio.ac.jp [131.113.203.78]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k5FAMm0t028772 for ; Thu, 15 Jun 2006 12:22:48 +0200 Received: from [131.113.203.71] (abelard2.flet.keio.ac.jp [131.113.203.71]) by cesarox.flet.keio.ac.jp (Postfix) with ESMTP id 2C46D27DF49; Thu, 15 Jun 2006 19:00:37 +0900 (JST) Message-ID: <4491303B.7050204@crans.org> Date: Thu, 15 Jun 2006 19:02:35 +0900 From: Stephane Glondu User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: colonna@ccr.jussieu.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ill-formed "french" character literal. References: <44912C2D.9010103@ccr.jussieu.fr> In-Reply-To: <44912C2D.9010103@ccr.jussieu.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 449134FA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 449134F8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ill-formed:01 ill-formed:01 48,:98 wrote:01 lexical:01 lexical:01 caml-list:01 camlc:01 francois:02 bytes:03 character:04 character:04 'e':04 problem:05 problem:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Francois Colonna wrote: > I have a problem with french accents : > > camlc -c lexical_analyzer.ml > > File "lexical_analyzer.ml", line 48, characters 34-38: > > [< '(`A`..`Z` | `a`..`z` | `é` | `è` | `_` as c ) >] -> > > ^^^^ > Ill-formed character literal. > > What can I do ? Are you sure the problem comes with French accents? Also keep in mind that in UTF-8, 'é' is two bytes, so it is not a valid character literal. -- Stephane Glondu