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,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: _Type vs no _Type Date: Sat, 06 Nov 2010 00:36:46 +0100 Organization: Adalog Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <82zktq4n9b.fsf_-_@stephe-leake.org> <87eib06yir.fsf@mid.deneb.enyo.de> <874obvhdp9.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 5 Nov 2010 23:36:49 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="z/xN1DBP8RUb+r9ug/i0hg"; logging-data="14326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kfebjRX+gglV3dJciVTUc" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: <874obvhdp9.fsf@mid.deneb.enyo.de> Cancel-Lock: sha1:vqUWCydUiffzneRy5y9tV+gcIO4= Xref: g2news1.google.com comp.lang.ada:15302 Date: 2010-11-06T00:36:46+01:00 List-Id: Le 05/11/2010 18:39, Florian Weimer a �crit : > The following program > > with Ada.Text_IO; > procedure T is > type E is (�); > begin > Ada.Text_IO.Put_Line (E'Image (�)); > end T; > > should print a line containing the single character "�". Can you > tweak your favorite Ada compiler to produce this output? Does it > still work when the program runs under another system-supported > locale? > > Part of those difficulties are related to case insensitivity (but not > all of them). The 'Image attribute has nothing to do whatsoever with case insensitivity. The issue of upper-case mapping is very difficult, and there are actually several mappings defined in Unicode. Moreover, what's printed on your terminal reflects the mapping that your terminal does between code-points and glyphs, which is totally outside of the domain of the programming language. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00