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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5bcc293dc5642650 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.21.229 with SMTP id y5mr17630412pbe.1.1318684378333; Sat, 15 Oct 2011 06:12:58 -0700 (PDT) Path: d5ni11095pbc.0!nntp.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 15 Oct 2011 08:12:55 -0500 Date: Sat, 15 Oct 2011 09:12:39 -0400 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> <418b8140-fafb-442f-b91c-e22cc47f8adb@y22g2000pri.googlegroups.com> In-Reply-To: Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-AYuBnuqkbN+B2gl9d4xmKkFSqzNqQEtN4/yBUkWNZZU4ZfvJDyHSDTsbp/d28vV68F5uspOOoCvIlpD!4PGgm9pYjmwZPrkwUc0A3IZY1Crb/fbToZx0k/HgQ6gc9KpaQM+iCUmjhfgmrHA= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2934 Xref: news2.google.com comp.lang.ada:13960 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-10-15T09:12:39-04:00 List-Id: On 2011-10-15 04:38, Dmitry A. Kazakov wrote: > There are two problems with the standard: > > 1. It does not define strings and characters in terms of a code point type > to be consistent with Unicode; > > 2. It does not provide automatic conversions between character/string > types, because of the problem #1, and because the Ada type system is too > weak for that. > > Clearly file operations, directory operations, character maps should be > defined using code points rather than characters. There should be only one > instance of each operation/package independent on the encoding and the > combinations of encodings. Disclaimer: I haven't thought about this very much. It seems like you are expecting too much from the standard. If a standard program writes files with names that the standard understands then a standard program can read those files back and manipulate them via Ada.Directories. Yes? The problem arises when you try to ask a standard program to delve into system specific details such as reading arbitrary ("exotic") file names supported by the system. That doesn't work, but I wouldn't expect it to work so what's the problem? C avoids this complexity by just not including directory manipulation in the standard at all. Ada at least allows a standard program to manipulate directories containing files written by another standard program. I can understand that it might be nice to extend the standard to include proper support for Unicode file names and such. But I don't think the lack of that support can be interpreted as some kind of failure of the standard. Peter