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,9a4a153357345e17 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.105.105 with SMTP id gl9mr2070038wib.4.1355182118441; Mon, 10 Dec 2012 15:28:38 -0800 (PST) MIME-Version: 1.0 X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Path: i11ni103332wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada.Directories and UTF-8 encoding ? Date: Mon, 10 Dec 2012 17:28:34 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <6585ae1a-cb06-46d0-bae4-26a0b437e09b@googlegroups.com> <583ae40d-0e99-4e2e-8ce7-4b476cc17561@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1355182117 9933 69.95.181.76 (10 Dec 2012 23:28:37 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 10 Dec 2012 23:28:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2012-12-10T17:28:34-06:00 List-Id: "Michael Rohan" wrote in message news:583ae40d-0e99-4e2e-8ce7-4b476cc17561@googlegroups.com... > Hi, > > I raised this issue a while ago. Using UTF-8 encoded names appears to > work > with the current packages (on my Linux system) but the Ada standard really > needs to be extended to have Wide_ versions of various file, directory, > etc, packages. That way lies madness. We already have packages like Wide_Text_IO, but this is orthogonal to those (they're about the type of file, not the type of the file names). If we made a Wide_Directories that supported wide file names, you'd have to use various combinations of xxx_Directories and xxx_Text_IO depending on what you want to do. Hardly anyone could figure it out. Besides, the current mechanisms for handling UTF-8 aren't type-safe. A better solution would be to require some sort of UTF-8 support, but that would actually break the support that already works for free on Linux. Thus it got a lot of opposition and we decided that it was too late to do anything about this for Ada 2012. I think we will have to obsolsce the entire set of String types and routines and replace them with something truly general. (Dmitry has been pointing the way.) But whether we'll have the will to do that, I cannot say. In any case, we have an Amendment AI on this topic, but of course when it will be addressed could be a long ways off. (We're not planning to "approve" any Amendments until we are given an official charge to do a revision, and that's unlikely for the next few years.) Randy.