comp.lang.ada
 help / color / mirror / Atom feed
From: david.smith@gmail.com
Subject: Wide Character Problem in Ada.Numerics
Date: 23 Apr 2007 14:29:01 -0700
Date: 2007-04-23T14:29:01-07:00	[thread overview]
Message-ID: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> (raw)

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

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!




             reply	other threads:[~2007-04-23 21:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 21:29 david.smith [this message]
     [not found] ` <462daae8$1@news.post.ch>
2007-04-24  8:03   ` Wide Character Problem in Ada.Numerics 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
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