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,347f7cbe27451012 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!news.glorb.com!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: [ranting] Take Command Plugin, Win32Ada and Ada.Directories Date: Wed, 14 Nov 2007 09:56:42 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <473ab86d$1@news.post.ch> References: <3343563.psPA6e9Oqh@linux1.krischik.com> <1pkwbr5s12cf9$.9k2umlcxqzbr.dlg@40tude.net> <473A1241.90702@obry.net> <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: atlas.ip-plus.net 1195030642 27779 194.41.146.1 (14 Nov 2007 08:57:22 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 14 Nov 2007 08:57:22 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <1vrktz0rlauvu.1nm0xh8n2wl90.dlg@40tude.net> X-Original-NNTP-Posting-Host: w03duo.pnet.ch X-Original-Trace: 14 Nov 2007 09:57:17 +0200, w03duo.pnet.ch Xref: g2news1.google.com comp.lang.ada:18358 Date: 2007-11-14T09:56:42+01:00 List-Id: 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. > (Introduction of Wide x n_String was so obvious mistake, IMO.) Introducing Wide_String but then *not* introducing it for file names was the mistake. If only as an optional features for platforms which support Wide_String (or Wide_Wide_Sting) file names. In 95 it was understandable but in 2005 localised file name have become standard and not supporting them a big mistake. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com