comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: [ANN] List_Image v0.2.0
Date: Fri, 2 Feb 2018 06:25:27 +0100
Date: 2018-02-02T06:25:27+01:00	[thread overview]
Message-ID: <p50so5$rmr$1@dont-email.me> (raw)
In-Reply-To: <gft67dlpcq4mgq6g4mssrkur18tn6q625m@4ax.com>

Le 01/02/2018 à 21:26, Dennis Lee Bieber a écrit :
> 	And how will this support, say, a file created under Linux, which is
> being processed under Windows? One either has to be able to specify the EOL
> convention for each file, convert the EOL convention before using the file,
> or have the language attempt to determine the EOL convention at run-time
> and make the suitable adjustments. In Python, a file opened for "text"
> mode, running on Windows, has <lf> in text converted to <cr><lf> during
> output -- on Linux, there is no real difference between text and binary,
> <lf> is not expanded during output. And if one does not know the
> convention, there is "universal newline" mode, which attempts to guess the
> convention based upon what is found within the first few blocks of the
> file.

Note that at this point, it's no more a language issue. The problem
would be exactly the same in C or whatever. When you say Python does the
right thing, you mean the Python implementation you tried, right? AFAIK
there is no such thing as a Python standard. And if you think of
particular implementations, Gnat does the same thing: it accepts pretty
much any possible line terminator.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

  reply	other threads:[~2018-02-02  5:25 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31  0:44 [ANN] List_Image v0.2.0 Lionel Draghi
2018-01-31  7:27 ` briot.emmanuel
2018-01-31 21:11   ` Lionel Draghi
2018-02-01  8:05     ` briot.emmanuel
2018-02-01  9:48     ` J-P. Rosen
2018-02-01 15:48       ` Lionel Draghi
2018-02-01 17:20         ` bozovic.bojan
2018-02-01 18:31           ` Lionel Draghi
2018-02-01 18:45             ` bozovic.bojan
2018-02-01 20:26               ` Dennis Lee Bieber
2018-02-02  5:25                 ` J-P. Rosen [this message]
2018-02-02  0:02             ` Randy Brukardt
2018-02-02  0:31               ` Simon Clubley
2018-02-02 18:34               ` Lionel Draghi
2018-02-02 22:40                 ` Randy Brukardt
2018-02-11 23:27                   ` Lionel Draghi
2018-02-12  6:55                     ` J-P. Rosen
2018-02-12 20:44                       ` Lionel Draghi
2018-02-12 10:57                     ` Stefan.Lucks
2018-02-12 21:41                       ` Lionel Draghi
2018-03-07 10:17                     ` Semantic versioning (Was: [ANN] List_Image v0.2.0) Jacob Sparre Andersen
2018-02-01 20:11         ` [ANN] List_Image v0.2.0 J-P. Rosen
2018-02-01 21:08           ` Simon Wright
2018-02-01  0:27   ` Randy Brukardt
2018-02-01  7:55     ` briot.emmanuel
2018-02-01 23:56       ` Randy Brukardt
2018-02-02 15:48         ` Simon Wright
2018-02-02 22:54           ` Randy Brukardt
2018-02-01  8:08     ` Simon Wright
2018-02-01  8:24       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox