comp.lang.ada
 help / color / mirror / Atom feed
From: Erlo Haugen <_elh_@_tema_._com_>
Subject: Re: types and non-contigous ranges
Date: Fri, 27 Feb 2004 14:21:04 +0100
Date: 2004-02-27T14:21:04+01:00	[thread overview]
Message-ID: <403f4459$0$173$edfadb0f@dread11.news.tele.dk> (raw)
In-Reply-To: <ply8qo7k3z.fsf@sparre.crs4.it>

Jacob Sparre Andersen skrev:

> Erlo Haugen skrev:
> 
>>Jacob Sparre Andersen skrev:
>>
>>>Erlo Haugen skrev:
> 
> 
>>>>what is the easiest way to define a (sub)type consisting of ranges
>>>>and single values?
> 
> 
>>>   type Valid_Characters is ('0', '1', '2', ... '9',
>>>                             'A', 'B', 'C', ... '�', '�', '�');
> 
> 
>>But why is it that when i use '�', the compiler says that strings
>>are delimited by " ? Using UC_AE_Diphthong is OK.
> 
> 
> That is probably because you and your compiler aren't in complete
> agreement about which character encoding you are using.
> 
> If the compiler expects you to use ISO-8859-1 (which is very likely)
> and you are actually using UTF-8 (which I would guess from the error
> message), then the compiler will not read what you see as "�" as "�"
> but as a sequence of two other characters.
> 
In the source ??

type Valid_Characters is ('0', '1', '2', ... '9',
                           'A', 'B', 'C', ... '�'); <<<<-----this is 
where I get the error.
How do I get in sync with the compilers idea of which encoding we use??


-- 
Erlo
-----
Remove underscores from mail address.
The statements and opinions are mine and does not
neccesarily reflect those of my employers




  reply	other threads:[~2004-02-27 13:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-26 14:17 types and non-contigous ranges Erlo Haugen
2004-02-26 15:52 ` Jacob Sparre Andersen
2004-02-27  7:55   ` Erlo Haugen
2004-02-27 13:00     ` Jacob Sparre Andersen
2004-02-27 13:21       ` Erlo Haugen [this message]
2004-02-27 13:58         ` Character encoding (Was: types and non-contigous ranges) Jacob Sparre Andersen
2004-02-26 16:07 ` types and non-contigous ranges Dmitry A. Kazakov
2004-02-27  7:53   ` Erlo Haugen
2004-02-27 23:59     ` Randy Brukardt
2004-03-01  8:50       ` Erlo Haugen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox