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,5bcc293dc5642650 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.38.134 with SMTP id g6mr4825304pbk.6.1318981371799; Tue, 18 Oct 2011 16:42:51 -0700 (PDT) Path: d5ni29448pbc.0!nntp.google.com!news1.google.com!postnews.google.com!p14g2000pra.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? Date: Tue, 18 Oct 2011 16:42:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1c336f5a-3582-46e1-971c-b11b01527fb1@p14g2000pra.googlegroups.com> References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> <418b8140-fafb-442f-b91c-e22cc47f8adb@y22g2000pri.googlegroups.com> <7156122c-b63f-487e-ad1b-0edcc6694a7a@u10g2000prl.googlegroups.com> <409c81ab-bd54-493b-beb4-a0cca99ec306@p27g2000prp.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1318981371 28356 127.0.0.1 (18 Oct 2011 23:42:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 18 Oct 2011 23:42:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p14g2000pra.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: news1.google.com comp.lang.ada:18582 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-18T16:42:51-07:00 List-Id: On Oct 18, 8:16=A0am, "Dmitry A. Kazakov" wrote: > On Tue, 18 Oct 2011 08:02:31 -0700 (PDT), Adam Beneschan wrote: > > On the other hand, I was confused by your statement > > "Ada.Character.Handling.To_Upper breaks UTF-8". > > When String X contains UTF-8 encoded text (means: Character'Pos =3D octet > value), then To_Upper (X) would yield garbage for some texts. Oh, I see. I thought he was actually talking about UTF-8 encoded characters, not "characters" in a UTF-8 encoded string. My impression (apparently wrong) was that when String X contained UTF-8 encoded text, that the programmer would understand that the characters in it weren't really *characters* and thus wouldn't dream of calling To_Upper. But I suppose that somebody working on a part of a program that takes a String parameter and doesn't realize that the String parameter could be an array of not-really-characters could get it wrong. Which I think is more evidence of why it was wrong to have the String type, an array of characters, do double duty as an array-of- encoded-bytes type. -- Adam