* Ill-formed "french" character literal.
@ 2006-06-15 9:45 Francois Colonna
2006-06-15 9:55 ` [Caml-list] " Daniel Bünzli
2006-06-15 10:02 ` Stephane Glondu
0 siblings, 2 replies; 3+ messages in thread
From: Francois Colonna @ 2006-06-15 9:45 UTC (permalink / raw)
To: caml-list
Hello,
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 ?
François Colonna
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Ill-formed "french" character literal.
2006-06-15 9:45 Ill-formed "french" character literal Francois Colonna
@ 2006-06-15 9:55 ` Daniel Bünzli
2006-06-15 10:02 ` Stephane Glondu
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Bünzli @ 2006-06-15 9:55 UTC (permalink / raw)
To: colonna; +Cc: caml-list
> What can I do ?
Check that the encoding of your file is ISO 8859-1 (latin1), see
there [1].
Regards,
Daniel
[1] <http://caml.inria.fr/pub/docs/manual-ocaml/manual009.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Ill-formed "french" character literal.
2006-06-15 9:45 Ill-formed "french" character literal Francois Colonna
2006-06-15 9:55 ` [Caml-list] " Daniel Bünzli
@ 2006-06-15 10:02 ` Stephane Glondu
1 sibling, 0 replies; 3+ messages in thread
From: Stephane Glondu @ 2006-06-15 10:02 UTC (permalink / raw)
To: colonna; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-15 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-15 9:45 Ill-formed "french" character literal Francois Colonna
2006-06-15 9:55 ` [Caml-list] " Daniel Bünzli
2006-06-15 10:02 ` Stephane Glondu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox