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-Thread: 103376,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.tu-darmstadt.de!frankfurt2.telia.de!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, sv-se, sv-fi, en-gb, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: variable length strings References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> <1154613.ipZcUgduzp@linux1.krischik.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Tue, 26 Oct 2004 18:50:59 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1098816659 217.209.116.179 (Tue, 26 Oct 2004 20:50:59 CEST) NNTP-Posting-Date: Tue, 26 Oct 2004 20:50:59 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:5733 Date: 2004-10-26T18:50:59+00:00 List-Id: Warren W. Gay VE3WWG wrote: > I think it is reasonable that text files be in the correct > format for the platform in use. If they are not, then they require > conversion. I also accept that from a practical point of view, we > all like it to adapt anyway ;-) The way I see it, the unfortunate reality is that any program that=20 processes text files needs to handle both LF, CR and CR-LF, and maybe=20 NEL too (and record-based files on such platforms I suppose), as well as = both presence and absence of a line break at the end of the last line.=20 In the Internet era it's not possible to keep all your files in one forma= t. In the IO package for EAstrings I let the programmer configure the line=20 break characters for each file. By default it uses the platform's=20 convention on output and recognizes LF, CR, CR-LF and NEL on input. --=20 Bj=F6rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu