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,FREEMAIL_FROM
autolearn=ham autolearn_force=no version=3.4.4
X-Google-Thread: a07f3367d7,98821c80e10d88c4
X-Google-Attributes: gida07f3367d7,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII
Received: by 10.204.141.4 with SMTP id k4mr381720bku.6.1339691021076;
Thu, 14 Jun 2012 09:23:41 -0700 (PDT)
Path:
e27ni47859bkw.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From: Blady
Newsgroups: comp.lang.ada
Subject: Re: gnat 2011 - macbook
Date: Mon, 11 Jun 2012 13:02:09 -0700 (PDT)
Organization: http://groups.google.com
Message-ID: <4273da2d-c355-446f-9849-c6bc02ea2e1e@googlegroups.com>
References: <16918417-25c8-4547-bba8-89c4cb70f1fe@l5g2000vbo.googlegroups.com>
NNTP-Posting-Host: 2.8.114.115
Mime-Version: 1.0
X-Trace: posting.google.com 1339445042 30004 127.0.0.1 (11 Jun 2012 20:04:02
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 11 Jun 2012 20:04:02 +0000 (UTC)
In-Reply-To:
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.8.114.115;
posting-account=94GLqQoAAABRDKJ5vWVBzCDWAEq47F5V
User-Agent: G2/1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Date: 2012-06-11T13:02:09-07:00
List-Id:
Le lundi 11 juin 2012 21:44:27 UTC+2, Blady a =E9crit=A0:
> Le vendredi 25 mai 2012 12:13:23 UTC+2, RasikaSr...@gmail.com a =E9crit=
=A0:
> > all
> >=20
> > I have a program that reads a text file using text_io.get_line.
> >=20
> > It would appear that on the mac, the line terminator CR are not
> > digested by the get_line. On windows it seems that the CR/LF is
> > handled and are not returned to the application. The test data file I
> > am using originated in a Windows system.
> >=20
> > Is this an expected behavior?
> >=20
> > thanks, srini
>=20
> Hi, yes it's clearly a drawback to deal with many different text formats =
for line terminator and accentuated letters.
> It should be processed automatically without care about format like many =
text editors guess the good format.
> In 2005, I modified GNAT Text_IO lib with awareness to Mac CR line termin=
ators and MacRoman characters.
> See /Users/blady/Documents/Synchro/Blady/alpha.html
> But I don't really use it because I switched to UTF-8 for my source code =
with Mac OS X.
> And for remaining old Mac files I use TextWrangler to convert them.
> http://www.barebones.com/products/textwrangler/
>=20
> HTH, Pascal.
With Internet URL should be better:
http://blady.pagesperso-orange.fr/alpha.html
And for French readers:
http://blady.pagesperso-orange.fr/creations.html#ada-text-io
Regards, Pascal.