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-7-bit
X-Google-Thread: 103376,29495b0e9519b616
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2003-12-10 13:35:00 PST
Path:
archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!freenix!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Latin_1 and portability
Date: 10 Dec 2003 22:34:55 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <344d0fee.0312100415.63724db9@posting.google.com>
NNTP-Posting-Host: avelizy-103-1-4-225.w80-11.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader2.wanadoo.fr 1071092099 20406 80.11.102.225 (10 Dec 2003
21:34:59 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 10 Dec 2003 21:34:59 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:3335
Date: 2003-12-10T21:34:59+00:00
List-Id:
xavier.serrand@free.fr (Xavier Serrand) writes:
> For return (or enter)
>
> when using Text_Io.Get_Immediate (E);
>
> on UNIX or Linux Suse Character'Pos (E) = 10
> on Windows 2000 Character'Pos (E) = 13
On Windows you should get 13+10 (CRLF) on UNIX only 10 (LF). You could try to
skip the 13 and call Get_Immediate a second time in this case.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595