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 05:45:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newshosting.com!news-xfer2.atl.newshosting.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Latin_1 and portability Date: Wed, 10 Dec 2003 13:45:08 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <344d0fee.0312100415.63724db9@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1071063908 3658 134.91.1.34 (10 Dec 2003 13:45:08 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 10 Dec 2003 13:45:08 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:3309 Date: 2003-12-10T13:45:08+00:00 List-Id: 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.