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,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada Date: Wed, 18 Aug 2010 15:16:50 +0200 Organization: Adalog Message-ID: References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <5f5303d4-075f-48ec-bd9b-17c9052cadd6@k10g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 18 Aug 2010 13:17:03 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Dn22F68J9CHYFQQlT81DGA"; logging-data="1259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/weIt9Lsrm4dX9Nk4DJ8Yd" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <5f5303d4-075f-48ec-bd9b-17c9052cadd6@k10g2000yqa.googlegroups.com> Cancel-Lock: sha1:iLf56CKUorsmT68m7X/9peMhf84= Xref: g2news1.google.com comp.lang.ada:13483 Date: 2010-08-18T15:16:50+02:00 List-Id: Le 18/08/2010 14:31, Ludovic Brenta a �crit : > Oh, and if you use GtkAda, (or GTK+ in C), it > expects all character strings to be UTF-8 and does not use > [Wide_]Wide_Strings. > > I like to define > subtype UTF8_String is String; > > to make it clear when a String really contains UTF-8. > Slightly OT, but you (and others) might be interested to know that Ada 2012 will include string encoding packages to the various UTF-X encodings. These will be (are?) provided very soon by GNAT. See AI05-137-2 (http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0137-2.txt?rev=1.2) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr