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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Wed, 30 Aug 2017 19:49:25 -0500 Organization: JSA Research & Innovation Message-ID: References: <79e06550-67d7-45b3-88f8-b7b3980ecb20@googlegroups.com> <9d4bc8aa-cc44-4c30-8385-af0d29d49b36@googlegroups.com> <1395655516.524005222.638450.laguest-archeia.com@nntp.aioe.org> <4527d955-a6fe-4782-beea-e59c3bb69f21@googlegroups.com> <22c5d2f4-6b96-4474-936c-024fdbed6ac7@googlegroups.com> <1919594098.524164165.354468.laguest-archeia.com@nntp.aioe.org> <85d4930c-d4dc-4e4f-af7a-fd7c213b8290@googlegroups.com> <725b229b-f768-4603-b564-4751e5e7136f@googlegroups.com> Injection-Date: Thu, 31 Aug 2017 00:49:26 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="6183"; mail-complaints-to="news@jacob-sparre.dk" 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.7246 Xref: news.eternal-september.org comp.lang.ada:47845 Date: 2017-08-30T19:49:25-05:00 List-Id: "Robert Eachus" wrote in message news:725b229b-f768-4603-b564-4751e5e7136f@googlegroups.com... On Friday, August 11, 2017 at 5:13:44 PM UTC-4, Randy Brukardt wrote: >> The problem is that AdaCore's desire to keep this misfeature killed the >> first attempt to allow UTF-8 in file names generally. There needs to be >> some >> way to tell UTF-8 strings from Latin-1 strings (as characters over 128 >> are >> encoded differently); I believe there was a suggestion to use a BOM to do >> this. That would have broken the "free" use in Linux, and it was killed. >> So >> you guys got nothing. >There is an 'elegant' solution. Add a UTF8 character string type. Possible, but in no way elegant: you'd still need duplicate operations for it all over the runtime library. (I.e. UTF8_Open, UTF8_Name, etc.). Can't change the existing routines without nasty compability problems. (Note that auto-conversions don't work either, as they'd make almost all existing code with string literals ambiguous.) The other operations exist already, of course, in the Ada.Strings.UTF_Encodings packages. They don't help for uses like I/O and Exception_Information. Randy.