comp.lang.ada
 help / color / mirror / Atom feed
From: demoonlit@panathenaia.halfmoon.jp
Subject: Re: Ada.Directories and multibyte-filename
Date: 10 Aug 2006 01:39:27 -0700
Date: 2006-08-10T01:39:27-07:00	[thread overview]
Message-ID: <1155199167.576223.317470@b28g2000cwb.googlegroups.com> (raw)
In-Reply-To: <wMLtg.9034$E02.2764@newsb.telia.net>

Björn Persson wrote:
> You write that as if you think it's a flaw in how the proposed new Ada
> standard specifies Ada.Directories. It does indeed seem to assume that
> all possible file names can be encoded in Latin-1, as all the operations
> work with String only.

I think that it's necessary to prepare the Wide-version in reality.
However, AdaCore seem they are thinking Ada's File API take Unicode
filename.
http://www.adacore.com/2006/04/08/NF-505-EC08-010-gnat/
I do not care this point if it works correctly.

> If instead you consider this a bug in Gnat (assuming your compiler is
> Gnat like in your other posts), then please report it in GCC Bugzilla
> (http://gcc.gnu.org/bugs.html). Don't forget to provide detailed
> information on version of Gnat, operating system, locale and all that.

But, these API implementation is not making sense of the meaning.
It is possible to think "Character" type based Unicode filename to
UTF-8.
Actually, it is locale-character-code(Shift_JIS in Japanease-ver.
Windows, LC_xxx environment-variable in Linux...when locale is UTF-8 by
chance, it is likely to operate according to the
intention.) that Ada.Text_IO.Create accepts.
Also, Ada.Directories.Validity takes correct-filename as error.
Confusion and mistake seem in each place.

Therefore, I consider this a bug in GNAT.
Thank you for teaching the report destination.




  reply	other threads:[~2006-08-10  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 17:38 Ada.Directories and multibyte-filename Y.Tomino
2006-07-14 12:05 ` Björn Persson
2006-08-10  8:39   ` demoonlit [this message]
2006-07-14 16:37 ` Georg Bauhaus
replies disabled

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