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!news2.google.com!news.glorb.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.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> <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> <473A1241.90702@obry.net> Date: Wed, 14 Nov 2007 09:33:59 +0100 Message-ID: <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> NNTP-Posting-Date: 14 Nov 2007 09:26:58 CET NNTP-Posting-Host: 10b16df1.newsspool1.arcor-online.net X-Trace: DXC=bN3N@L0K72Z\PS5Xo=M[RVic==]BZ:af^4Fo<]lROoRQFl8W>\BH3YRAiPCkoWY3QUDNcfSJ;bb[UFCTGGVUmh?TLK[5LiR>kgRlPd?3]XaV[[ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18356 Date: 2007-11-14T09:26:58+01:00 List-Id: On Tue, 13 Nov 2007 22:08:17 +0100, Pascal Obry wrote: > Dmitry A. Kazakov a �crit : >> 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) > > AFAIK the xxxW version of the API is UTF-16. In that case I would drop the mess in Win32Ada and make a thin UTF-8 layer above with plain String as parameters. I would also explicitly require UTF-8 encoding for Full_Name and Simple_Name in Ada.Directories. (Introduction of Wide x n_String was so obvious mistake, IMO.) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de