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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,182c0df39337eeca,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!postnews.google.com!l77g2000hsb.googlegroups.com!not-for-mail From: david.smith@gmail.com Newsgroups: comp.lang.ada Subject: Wide Character Problem in Ada.Numerics Date: 23 Apr 2007 14:29:01 -0700 Organization: http://groups.google.com Message-ID: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> NNTP-Posting-Host: 150.135.111.32 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1177363741 1064 127.0.0.1 (23 Apr 2007 21:29:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Apr 2007 21:29:01 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.11) Gecko/20070327 Ubuntu/dapper-security Firefox/1.5.0.11,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l77g2000hsb.googlegroups.com; posting-host=150.135.111.32; posting-account=hjwdNg0AAADrWbU8BVPocB6GQuDF5upL Xref: g2news1.google.com comp.lang.ada:15242 Date: 2007-04-23T14:29:01-07:00 List-Id: 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 =CE=A3 : Wide_Character :=3D '=CF=80'; =CE=BC : Float :=3D 0.01; begin Put(=CE=A3); New_Line; Put(=CE=BC); end WCTest; --- Output: =CF=80 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 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? Thanks!