From: xavier.serrand@free.fr (Xavier Serrand)
Subject: Re: Latin_1 and portability
Date: 10 Dec 2003 14:00:02 -0800
Date: 2003-12-10T14:00:02-08:00 [thread overview]
Message-ID: <344d0fee.0312101400.6022b266@posting.google.com> (raw)
In-Reply-To: br7814$3ia$1@a1-hrz.uni-duisburg.de
Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de> wrote in message news:<br7814$3ia$1@a1-hrz.uni-duisburg.de>...
> Xavier Serrand <xavier.serrand@free.fr> wrote:
> : Hello,
> :
> : 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
> :
> : How can I manage to work properly ...
> : Do i have to parametrize my application reading characters from a file
> : ... and looking at the values recognized by the functions ... Is there
> : anothers means ?
>
> Do you read the characters from the keyboard?
> And had you pressed RETURN in the above example?
>
> If so, in order to be prepared for a variety of keyboards and
> systems and character handling done by systems or run time
> libraries, you can hide the details of what character you
> will get for RETURN.
> If you know that you will either get Latin_1.CR or Latin_1.LF,
> and both Characters have the same meaning in your application, they
> both could be mapped to the same character by a wrapper function,
> for example.
Hello Mister Georg Bauhaus,
First, I read characters from the keyboard, and i've pressed RETURN...
Thanks for this advise... i actually don't need to make differences
between CR and LF.
Xavier SERRAND
next prev parent reply other threads:[~2003-12-10 22:00 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 [this message]
2003-12-10 18:33 ` Jeffrey Carter
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