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: 103376,347f7cbe27451012 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!news.musoftware.de!news.mind.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: [ranting] Take Command Plugin, Win32Ada and Ada.Directories Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <3343563.psPA6e9Oqh@linux1.krischik.com> Date: Tue, 13 Nov 2007 09:57:17 +0100 Message-ID: <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> NNTP-Posting-Date: 13 Nov 2007 09:50:18 CET NNTP-Posting-Host: a987c6f7.newsspool2.arcor-online.net X-Trace: DXC=hL22O=cBN[S\PS5Xo=M[RVA9EHlD;3YcR4Fo<]lROoRQ4nDHegD_]RUdNFZbAQ[i2ZDNcfSJ;bb[UFCTGGVUmh?TLK[5LiR>kgR\c2;h8RE`fQ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18342 Date: 2007-11-13T09:50:18+01:00 List-Id: On Mon, 12 Nov 2007 20:53:10 +0100, Martin Krischik wrote: > But what really saddens me is the fact that Ada 2005 still uses String for > filenames. I just found out that Ada.Directories.Search chokes on filenames > with wide characters. Since Windows uses UTF-16 for filenames even a simple > Latin-1 "�" is in that group. Actually Windows has xxxA and xxxW versions of the API calls. Does Win32Ada reflect that? The bindings to the xxxW subprograms should use Wide_String. (I guess that Windows is UCS-2, not UTF-16) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de