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,UTF8 Received: by 10.68.33.161 with SMTP id s1mr2879466pbi.2.1318946796509; Tue, 18 Oct 2011 07:06:36 -0700 (PDT) Path: d5ni27298pbc.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!freenix!feeder.news.orange.fr!not-for-mail Message-ID: <4E9D87EB.6040203@obry.net> Date: Tue, 18 Oct 2011 16:06:35 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Randy Brukardt 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: NNTP-Posting-Date: 18 Oct 2011 16:06:36 CEST NNTP-Posting-Host: 83.199.101.77 X-Trace: 1318946796 reader.news.orange.fr 18785 83.199.101.77:6339 X-Complaints-To: abuse@orange.fr Xref: news2.google.com comp.lang.ada:14051 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: 2011-10-18T16:06:36+02:00 List-Id: Randy, > Now, if an implementation on Windows doesn't have a way to use UTF-8 > encoding, that is an implementation problem, but not one that the Standard > can do much about. But I can tell you that supporting UTF-8 on Windows is not trivial at all as there is encoding/decoding needed in many places. Doing that is not trivial and we had the need to invent the "encoding=[UTF8|8BITS]" mode for Text_IO.Open for example. As you say, implementation details, but can be easily defeated: If in my file I have: Filename : constant String := "été"; And this file is saved using UTF-8 encoding, then: Text_IO.Open (Filename, ..., Mode => "encoding=8bits"); Will just fail. A programmer error? Ok... Now: Text_IO.Get (Filename, Last); Text_IO.Open (Filename, ..., Mode => "encoding=8bits"); What if the console is UTF-8? Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B