From: Georg Bauhaus <bauhaus@arcor.de>
Subject: Re: Wide Character Problem in Ada.Numerics
Date: Tue, 24 Apr 2007 11:16:05 +0200
Date: 2007-04-24T11:10:38+02:00 [thread overview]
Message-ID: <1177406164.6354.14.camel@localhost> (raw)
In-Reply-To: <462daae8$1@news.post.ch>
On Tue, 2007-04-24 at 08:59 +0200, Martin Krischik wrote:
> david.smith@gmail.com schrieb:
> > When I next compile my real code with greek letters *and* using the
> > Ada.Numerics package, I get the following error:
> >
> > a-numeri.ads:25:04: illegal wide character
> >
> > This is the line that has the bracket notation definition of pi in
> > it.
> >
> > Does anyone know what is going on? Why is there an error in a system
> > file?
>
> Yes - I saw that to - GNAT produces this error if utf-8 (-gnatW8) is
> used for source code. Best is to file a bug report.
Wouldn't it be best in this case to do what everyone else does
and, as an option, have the compiler determine the default character
encoding using a BOM? http://unicode.org/faq/utf_bom.html#22
Bytes Encoding Form
00 00 FE FF UTF-32, big-endian
FF FE 00 00 UTF-32, little-endian
FE FF UTF-16, big-endian
FF FE UTF-16, little-endian
EF BB BF UTF-8
If there is no BOM, there is ambiguity anyway for compilers
with circuits for interpreting 8 bits in many ways.
next prev parent reply other threads:[~2007-04-24 9:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 21:29 Wide Character Problem in Ada.Numerics david.smith
[not found] ` <462daae8$1@news.post.ch>
2007-04-24 8:03 ` Jean-Pierre Rosen
2007-04-24 16:35 ` Adam Beneschan
2007-04-25 8:28 ` Maciej Sobczak
2007-04-25 9:02 ` Jean-Pierre Rosen
2007-04-26 0:27 ` Brian May
2007-04-26 17:43 ` Adam Beneschan
2007-04-27 0:35 ` Brian May
2007-04-27 12:08 ` Jean-Pierre Rosen
2007-04-27 15:41 ` Adam Beneschan
2007-04-27 16:43 ` Ray Blaak
2007-04-27 19:04 ` Randy Brukardt
2007-04-25 10:01 ` Markus E Leypold
2007-04-24 9:16 ` Georg Bauhaus [this message]
2007-04-24 17:54 ` Pascal Obry
2007-04-26 2:31 ` David Smith
2007-04-26 19:03 ` Pascal Obry
2007-04-26 19:41 ` Georg Bauhaus
2007-04-26 20:30 ` Pascal Obry
2007-04-27 1:47 ` Adam Beneschan
2007-04-27 2:51 ` David Smith
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox