From: David Starner <dvdeug@x8b4e53cd.dhcp.okstate.edu>
Subject: Re: Text_IO on WinNT problem
Date: 25 Sep 2001 20:07:35 GMT
Date: 2001-09-25T20:07:35+00:00 [thread overview]
Message-ID: <9oqo67$8a21@news.cis.okstate.edu> (raw)
In-Reply-To: 3BB0D164.A45229AE@adaworks.com
On Tue, 25 Sep 2001 11:48:04 -0700, Richard Riehle <richard@adaworks.com> wrote:
> David Starner wrote:
>
>> Looking at the GNAT Reference manual, under Wide_Text_IO, there's no way
>> to load it in as Wide_Character. There's no standard way to handle it
>> with Text_IO - this seems like a fairly unusual case - but you could
>> always try reading them in one by one and discarding half of them.
>
> See Ada.Characters.Handling, ALRM, Annex A.3.2
>
> function To_Character(Item : in Wide_Character;
> Substitute : in Character := ' ')
> return Character;
As I pointed out, GNAT can't read in UTF-16LE using Wide_Text_IO. The
problem is getting them into the program, not converting them to the
right form.
--
David Starner - dstarner98@aasaa.ofe.org
Pointless website: http://dvdeug.dhis.org
When the aliens come, when the deathrays hum, when the bombers bomb,
we'll still be freakin' friends. - "Freakin' Friends"
next prev parent reply other threads:[~2001-09-25 20:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-25 16:04 Text_IO on WinNT problem Alfred Hilscher
2001-09-25 16:13 ` Lutz Donnerhacke
2001-09-25 18:07 ` David Botton
2001-09-25 17:36 ` Ted Dennison
2001-09-25 17:41 ` David Starner
2001-09-25 18:48 ` Richard Riehle
2001-09-25 20:07 ` David Starner [this message]
2001-09-25 21:44 ` Larry Kilgallen
2001-09-25 23:14 ` Mark Johnson
2001-09-26 2:39 ` David Starner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox