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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,46e22931b80b961d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: demoonlit@panathenaia.halfmoon.jp Newsgroups: comp.lang.ada Subject: Re: Ada.Directories and multibyte-filename Date: 10 Aug 2006 01:39:27 -0700 Organization: http://groups.google.com Message-ID: <1155199167.576223.317470@b28g2000cwb.googlegroups.com> References: NNTP-Posting-Host: 220.219.239.53 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1155199172 10326 127.0.0.1 (10 Aug 2006 08:39:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Aug 2006 08:39:32 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=220.219.239.53; posting-account=9W2rvw0AAACyvigQCWLBrKWN2EwyZyMn Xref: g2news2.google.com comp.lang.ada:6142 Date: 2006-08-10T01:39:27-07:00 List-Id: Bj=F6rn 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.