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!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!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> <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> <473A1241.90702@obry.net> <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> <473ab86d$1@news.post.ch> Date: Wed, 14 Nov 2007 10:36:41 +0100 Message-ID: <19x2od13tuh2a$.1lpcr349f44yp$.dlg@40tude.net> NNTP-Posting-Date: 14 Nov 2007 10:29:40 CET NNTP-Posting-Host: 306bc251.newsspool1.arcor-online.net X-Trace: DXC==?m_Z\lE85>T2Rfi64Fo<]lROoR1Fl8W>\BH3Y2Q`X_cB9nhF7DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2i5<;6X1>5e? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18361 Date: 2007-11-14T10:29:40+01:00 List-Id: On Wed, 14 Nov 2007 09:56:42 +0100, Martin Krischik wrote: > Dmitry A. Kazakov schrieb: > >> 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. > > Not just Ada.Directories - any package where a file name is needed. > And not just Win32 - any platform which supports UTF-8 file names. Sure. One formal problem is that Character is specified as Latin-1. Actually Character should be Universal_Integer as nobody knows how many characters there exist. (Still hoping their number will be at least countable. (:-)) The String element should then be Octet rather than Character. Though, practically, I doubt that anybody would much care. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de