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,FREEMAIL_FROM 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 14:00:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: xavier.serrand@free.fr (Xavier Serrand) Newsgroups: comp.lang.ada Subject: Re: Latin_1 and portability Date: 10 Dec 2003 14:00:02 -0800 Organization: http://groups.google.com Message-ID: <344d0fee.0312101400.6022b266@posting.google.com> References: <344d0fee.0312100415.63724db9@posting.google.com> NNTP-Posting-Host: 80.13.78.39 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1071093602 10715 127.0.0.1 (10 Dec 2003 22:00:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 Dec 2003 22:00:02 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3338 Date: 2003-12-10T14:00:02-08:00 List-Id: Georg Bauhaus wrote in message news:... > Xavier Serrand 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