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-Thread: a07f3367d7,5bcc293dc5642650 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? Date: Fri, 14 Oct 2011 11:07:20 +0200 Organization: cbb software GmbH Message-ID: References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:21427 Date: 2011-10-14T11:07:20+02:00 List-Id: On Fri, 14 Oct 2011 09:39:32 +0200, Yannick Duch�ne (Hibou57) wrote: > Le Fri, 14 Oct 2011 08:58:45 +0200, Michael Rohan > a �crit: > >> I've working a little on accessing files and directories using >> Ada.Directories and have been using a thin wrapper layer to convert from >> Wide_String to UTF8 and back. > Does it mean you pass UTF-8 encoded strings to Ada directory operations ? In most cases this is how it works under Linux. Under Windows that would depend what kind of operations xA, xW etc the implementation uses. I would strongly recommend not to use Ada.Directory until it gets fixed, e.g. *at least* all its calls made Wide_Wide_String or explicitly mandated as UTF-8 encoded. Until then as an alternative use GIO binding of Gtk or an equivalent in Qt. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de