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,9a4a153357345e17 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.86.138 with SMTP id p10mr539915paz.14.1354816578141; Thu, 06 Dec 2012 09:56:18 -0800 (PST) Received: by 10.50.87.165 with SMTP id az5mr2292121igb.1.1354816578086; Thu, 06 Dec 2012 09:56:18 -0800 (PST) Path: s9ni29953pbb.0!nntp.google.com!kr7no12758739pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Dec 2012 09:56:17 -0800 (PST) In-Reply-To: <6585ae1a-cb06-46d0-bae4-26a0b437e09b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=208.91.2.1; posting-account=1YPeQwoAAACAk-xhKPD32B0GIDdsFFtk NNTP-Posting-Host: 208.91.2.1 References: <6585ae1a-cb06-46d0-bae4-26a0b437e09b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <583ae40d-0e99-4e2e-8ce7-4b476cc17561@googlegroups.com> Subject: Re: Ada.Directories and UTF-8 encoding ? From: Michael Rohan Injection-Date: Thu, 06 Dec 2012 17:56:18 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-06T09:56:17-08:00 List-Id: Hi, I raised this issue a while ago. Using UTF-8 encoded names appears to work with the current packages (on my Linux system) but the Ada standard really needs to be extended to have Wide_ versions of various file, directory, etc, packages. Take care, Michael. On Thursday, December 6, 2012 5:37:27 AM UTC-8, gautier...@hotmail.com wrote: > Hello, > > Question: is there a support for UTF-8-encoded file names in Ada.Directories, either mentioned in the RM 2005, 2012, or in some implementations ? > > For instance only Copy_File has a Form parameter and on GNAT GPL 2012 it seems to ignore "encoding=utf-8". > > > > For Copy_File, Delete_File ans Rename it doesn't bother me since I plan anyway an own implementation, using Stream_IO where the form "encoding=utf-8" is working, at least on GNAT. > > > > For a directory search using Search it would be nice to have utf-8 working (not tested yet; I'll give a try with the Rosetta code: > > http://rosettacode.org/wiki/Walk_a_directory/Recursively#Ada ). > > > > Cheers > > _________________________ > > Gautier's Ada programming > > http://gautiersblog.blogspot.com/search/label/Ada > > NB: follow the above link for a valid e-mail address