comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: Reading "normal" text files with Wide_Text_IO in GNAT
Date: Sun, 03 Dec 2006 01:22:24 GMT
Date: 2006-12-03T01:22:24+00:00	[thread overview]
Message-ID: <kFpch.25227$E02.10276@newsb.telia.net> (raw)
In-Reply-To: 1164916470.648544.256710@n67g2000cwd.googlegroups.com

Adam Beneschan wrote:

> However, at first glance, I didn't see a way to get Wide_Text_IO to
> read a UCS-1 text file.

Hmm, I've never heard of UCS-1. Is such an encoding really defined?

> This is the encoding where each byte in the 
> range  16#00#..16#FF# represents a character in the range
> Wide_Character'Val(16#0000#) .. Wide_Character'Val(16#00FF#), and there
> is no way to represent wide characters from 16#0100# to 16#FFFF#.

OK, so it's identical to ISO 8859-1.

> Does GNAT's Wide_Text_IO have a way to read a file like this?

It does indeed look like it can't. Gnat's approach to character encodings is
amazingly faulty.

Does EAstrings fill your needs? If not, would you like to join me in
finishing the implementation so we can get rid of these problems?

http://adacl.sourceforge.net/AdaBrowse/adacl-eastrings.html

-- 
Bj�rn Persson                              PGP key A88682FD
                   omb jor ers @sv ge.
                   r o.b n.p son eri nu



  reply	other threads:[~2006-12-03  1:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 19:54 Reading "normal" text files with Wide_Text_IO in GNAT Adam Beneschan
2006-12-03  1:22 ` Björn Persson [this message]
2006-12-04 18:17   ` Adam Beneschan
2006-12-04 23:35     ` Manuel Collado
2006-12-06 23:46       ` Björn Persson
2006-12-07  2:02         ` Adam Beneschan
2006-12-09 20:43           ` Björn Persson
2006-12-11 19:49           ` Manuel Collado
replies disabled

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