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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,782076a3676d5d3e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-25 14:37:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!not-for-mail From: David Starner Newsgroups: comp.lang.ada Subject: Re: Text_IO on WinNT problem Date: 25 Sep 2001 20:07:35 GMT Organization: Oklahoma State University Message-ID: <9oqo67$8a21@news.cis.okstate.edu> References: <3BB0AAFD.9F006F92@icn.siemens.de> <9oqfkg$a2g1@news.cis.okstate.edu> <3BB0D164.A45229AE@adaworks.com> Reply-To: dstarner98@aasaa.ofe.org NNTP-Posting-Host: x8b4e53d2.dhcp.okstate.edu User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:13368 Date: 2001-09-25T20:07:35+00:00 List-Id: On Tue, 25 Sep 2001 11:48:04 -0700, Richard Riehle 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"