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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO.Get_Line issue in windows Date: Wed, 03 Jun 2015 08:02:09 +0100 Organization: A noiseless patient Spider Message-ID: References: <556be876$0$2775$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="3bd306b9e9949526c2d1303d55d7ecbf"; logging-data="7229"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RhpqsM3DOYOrz197j6Em34xhnxbY11xg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:EufjvSSPhUjdWbPG0FdU1rNjnTc= sha1:MAroagX+lanfM1lvsJRo4hYSyLo= Xref: news.eternal-september.org comp.lang.ada:26149 Date: 2015-06-03T08:02:09+01:00 List-Id: tornenvi writes: > Is this a bug in the windows builds of GNAT? It took me some time to realise that Emacs was automatically adding a linefeed to the end of the example file. Now I see that the behaviour you report is present in all the Mac OS X compilers I have from GNAT GPL 2011 to 2014 and GCC 4.6 to 5.1. For reference, $ echo -n "abcde" >Test.txt does the trick.