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,d54559bde05f5bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!postnews.google.com!w35g2000yqm.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Weird string I/O problem Date: Wed, 3 Dec 2008 02:42:59 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <184a2bfd-4d95-434b-91e0-64c8f869e8b7@r15g2000prh.googlegroups.com> <_7sZk.171628$Mh5.91283@bgtnsc04-news.ops.worldnet.att.net> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1228300980 29043 127.0.0.1 (3 Dec 2008 10:43:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 3 Dec 2008 10:43:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w35g2000yqm.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.2.3963) Xref: g2news1.google.com comp.lang.ada:2856 Date: 2008-12-03T02:42:59-08:00 List-Id: On Dec 3, 10:16=A0am, a...@anon.org (anon) wrote: > -- For christoph.grein > -- =A0 =A0Better re-read RM A.10.7. It does not say what you think it doe= s. ??? Hu. I quoted paras (1..3). So what do you think they say? > -- =A0 =A0Now A.9(8) should be A.10.8. =A0And it says that it is up to th= e Hehe ;-) We're all fond of typos. The correct quote here is A.10(8). > -- =A0 =A0author's implementation to define the terminators. Normally > -- =A0 =A0that is defined by the OS and hardware, but it can be redefined > -- =A0 =A0by the author code. What do you mean with "author"? Who is the author here, the implementor (the programmer definitely cannot redefine them)? Of course terminators are implementation defined. This is why there are End_of_Line and End_of_Page queries. So if you want to write portable code, use those, not CR/LF etc. This will simplify the code. BTW: Doesn't Mac use only CR for End_of_Line? Then anon's code will fail again. anon: I didn't doubt that you are able to write working code. But what do you want to demonstrate with this example? It simply does what Get_Line does, so what is the advantage of your code? OK, it keeps all control characters (except CR and LF and NUL) that might be present in the input, but ruins the line and page counts that Text_IO maintains. So what?