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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fb00b4031f5d9d4a X-Google-Attributes: gid103376,public From: aaro@iki.fi (Aaro Koskinen) Subject: Re: GNAT's Text_IO & empty files Date: 1998/07/08 Message-ID: #1/1 X-Deja-AN: 369621072 References: <35A0B7C5.1011D794@Maths.UniNe.CH> <35A16917.18DE1396@cl.cam.ac.uk> Organization: University of Helsinki Reply-To: aaro@iki.fi Newsgroups: comp.lang.ada Date: 1998-07-08T00:00:00+00:00 List-Id: Samuel Tardieu writes: > >>>>> "Markus" == Markus Kuhn writes: > > Markus> In addition, it might be worth noting that it is common > Markus> practive under Unix that all text files end with a LF > Markus> character. Editors such as vi do not allow you to create a > Markus> file that does not end with LF. > > Editors such as Emacs define this as a user-option, defaulting to > "don't add any extra LF", so I'm not sure we can call this "common practice". Check the POSIX.2 definition of a text file. It says that lines terminate with LF, and a text file contains at least one line. -- Aaro Koskinen, aaro@iki.fi, http://www.iki.fi/aaro