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-Language: ENGLISH,ASCII X-Google-Thread: 103376,1b78051e65d4576a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-27 05:21:30 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.octanews.net!news2.telebyte.nl!news.tele.dk!not-for-mail Date: Fri, 27 Feb 2004 14:21:04 +0100 From: Erlo Haugen <_elh_@_tema_._com_> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; da; rv:1.5) Gecko/20031007 X-Accept-Language: da,en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: types and non-contigous ranges References: <403e001b$0$144$edfadb0f@dread11.news.tele.dk> <403ef7ec$0$128$edfadb0f@dread11.news.tele.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <403f4459$0$173$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger NNTP-Posting-Host: 193.163.1.108 X-Trace: 1077888090 dread11.news.tele.dk 173 193.163.1.108:15914 X-Complaints-To: abuse@post.tele.dk Xref: archiver1.google.com comp.lang.ada:5893 Date: 2004-02-27T14:21:04+01:00 List-Id: 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