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-13 05:09:49 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: RE: Latin_1 and portability Date: 13 Dec 2003 07:09:46 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1071320887 3853 192.135.80.34 (13 Dec 2003 13:08:07 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sat, 13 Dec 2003 13:08:07 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3435 Date: 2003-12-13T07:09:46-06:00 List-Id: In article , "amado.alves" writes: > << > Are you saying that some implementations of TEXT_IO.GET_LINE do not > handle OS terminals properly ? > > I thought GET_LINE was the way around OS-dependencies in this area. >>> > =20 > I find this fascinating. You can have an X-conventioned text file in a Y = > system, where X and Y are operating systems (with distinct end of line = > conventions). If you compile your Ada program to the Y target, it will = > not read the X file properly. Amongs other unwarranted effects. Thit is = > why I adopt an 1-N conversion approach. Say 8-bit characters. I use = > Latin_1.NEL for end of line in the main application (the "1" side), and = > provide (simple) converters to/from the N conventions. That depends on your transfer mechanism. ISO-9660 includes an indicator regarding which of the 4 major EOL indicators is used in a file, and the OS can readily honor that. I have been told that some TCP/IP implementations do conversion on the fly. Taking random bits from one operating system to another is bound to fail when the operating systems expects a particular format (text file). This is no an Ada problem.