From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,182c0df39337eeca X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!proxad.net!fdn.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <462E4461.2060707@obry.net> Date: Tue, 24 Apr 2007 19:54:41 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: david.smith@gmail.com Subject: Re: Wide Character Problem in Ada.Numerics References: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> In-Reply-To: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 24 Apr 2007 19:54:45 CEST NNTP-Posting-Host: 81.249.105.45 X-Trace: 1177437285 news.orange.fr 5065 81.249.105.45:4444 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:15262 Date: 2007-04-24T19:54:45+02:00 List-Id: 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