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 s1mr2885574pbi.2.1318946906094; Tue, 18 Oct 2011 07:08:26 -0700 (PDT) Path: d5ni27298pbc.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!193.252.117.184.MISMATCH!feeder.news.orange.fr!not-for-mail Message-ID: <4E9D8859.7060803@obry.net> Date: Tue, 18 Oct 2011 16:08:25 +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 CC: 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> <4E9D87EB.6040203@obry.net> In-Reply-To: <4E9D87EB.6040203@obry.net> NNTP-Posting-Date: 18 Oct 2011 16:08:25 CEST NNTP-Posting-Host: 83.199.101.77 X-Trace: 1318946905 reader.news.orange.fr 18785 83.199.101.77:6339 X-Complaints-To: abuse@orange.fr Xref: news2.google.com comp.lang.ada:14052 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: 2011-10-18T16:08:25+02:00 List-Id: Le 18/10/2011 16:06, Pascal Obry a écrit : > 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, ^^^^ form > 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"); ^^^^ Form 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