From: Jeffrey Carter <spam@spam.com>
Subject: Re: Latin_1 and portability
Date: Wed, 10 Dec 2003 18:33:53 GMT
Date: 2003-12-10T18:33:53+00:00 [thread overview]
Message-ID: <lGJBb.9099$rP6.8945@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <344d0fee.0312100415.63724db9@posting.google.com>
Xavier Serrand wrote:
> 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
You could write
if Text_IO.End_Of_Line then
Text_IO.Skip_Line;
-- End of line processing
else
Text_IO.Get_Immediate (E);
-- Normal character processing
end if;
or
Text_IO.Get_Immediate (E);
case E is
when Latin_1.CR | Latin_1.LF =>
-- End of line processing
when ... -- other special cases
when others =>
-- Normal character processing
end case;
--
Jeff Carter
"Perfidious English mouse-dropping hoarders."
Monty Python & the Holy Grail
10
next prev parent reply other threads:[~2003-12-10 18:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 12:15 Latin_1 and portability Xavier Serrand
2003-12-10 13:45 ` Georg Bauhaus
2003-12-10 22:00 ` Xavier Serrand
2003-12-10 18:33 ` Jeffrey Carter [this message]
2003-12-10 21:34 ` Pascal Obry
2003-12-10 21:52 ` Ludovic Brenta
2003-12-11 3:40 ` Robert I. Eachus
2003-12-12 23:41 ` Larry Kilgallen
2003-12-13 14:48 ` Robert I. Eachus
-- strict thread matches above, loose matches on Subject: below --
2003-12-10 13:16 amado.alves
2003-12-13 2:27 amado.alves
2003-12-13 13:09 ` Larry Kilgallen
2003-12-13 13:35 amado.alves
2003-12-13 14:54 ` Björn Persson
2003-12-13 22:17 ` Larry Kilgallen
2003-12-14 1:55 ` Björn Persson
2003-12-13 22:21 ` Larry Kilgallen
2003-12-13 15:24 amado.alves
2003-12-14 2:46 ` Björn Persson
2003-12-14 5:04 ` Jeff C,
2003-12-14 6:12 ` Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox