From: Pascal Obry <pascal@obry.net>
To: david.smith@gmail.com
Subject: Re: Wide Character Problem in Ada.Numerics
Date: Tue, 24 Apr 2007 19:54:41 +0200
Date: 2007-04-24T19:54:45+02:00 [thread overview]
Message-ID: <462E4461.2060707@obry.net> (raw)
In-Reply-To: <1177363740.965003.247270@l77g2000hsb.googlegroups.com>
david.smith@gmail.com a écrit :
> Hi, I'm new here and to Ada. I'm having a problem compiling code
> using greek letters as identifiers. The problem arises when I need to
> use the Ada.Numerics package. My source code is UTF-8, and I'm
> entering the characters using a greek keymap in vim. I'm using gnat/
> gcc-4.1 and the -gnatiw and -gnatW8 switches.
>
> An example code I wrote compiles fine:
> ---
> with Ada.Wide_Text_IO; use Ada.Wide_Text_IO;
> with Ada.Float_Text_IO; use Ada.Float_Text_IO;
> procedure WCTest is
> Σ : Wide_Character := 'π';
> μ : Float := 0.01;
> begin
> Put(Σ);
> New_Line;
> Put(μ);
> end WCTest;
> ---
> Output:
> π
> 1.00000E-02
> ---
>
> 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
Did you try -gnatif option ?
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
next prev parent reply other threads:[~2007-04-24 17:54 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
2007-04-24 17:54 ` Pascal Obry [this message]
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