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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fbb47f3d0d553681 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!h10g2000prh.googlegroups.com!not-for-mail From: deadlyhead Newsgroups: comp.lang.ada Subject: Re: Using the Form parameter/-gnatW switch Date: Fri, 25 Jun 2010 23:59:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5868d58b-2f99-42a3-bd87-e14943dcdbbe@h10g2000prh.googlegroups.com> References: <15d17632-7377-4c60-9bb2-35f952300d42@w12g2000yqj.googlegroups.com> <4c2454dc$0$6991$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 67.182.146.42 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1277535558 21188 127.0.0.1 (26 Jun 2010 06:59:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Jun 2010 06:59:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h10g2000prh.googlegroups.com; posting-host=67.182.146.42; posting-account=snJuNwoAAABnc8T9lYkBlDQrDdSjOjG2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.0.14) Gecko/20080528 Epiphany/2.22 (Debian/2.26.3-2),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:12904 Date: 2010-06-25T23:59:17-07:00 List-Id: On Jun 25, 12:03=A0am, Georg Bauhaus wrote: > On 6/25/10 4:08 AM, deadlyhead wrote: > > > I've been messing around a bit with files of various encodings, and > > just recently I've become aware of the Form parameter to Open and > > Create and the -gnatW switch for handling character encoding. > > (Sometimes I think that Ada designers should, as part of their > "engineering awareness", work in a "web shop" for a few > months. =A0The experience of working with real encoded data > might make them look again at character encoding, but less, > uhm, condescendingly. =A0Character encoding (or string > encoding) is a representation issue and should be treated at > this level. =A0ISO 10646 deals with UTF. =A0A character is > ubiquitously a fundamental piece of data. > > In my dream, then, there is enough motivation to make > character encoding a solid part of the language proper > and thus have Ada be the first language that makes character > representation well defined and easy to use!) > > > I'm okay with giving up on this method and using the XML/Ada Unicode > > libraries for the text translation. =A0It'd be nice if I didn't have to= , > > though. > > Does GNAT 2010 support the Ada 2012 strings encoding package? > > http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0137-1.txt?rev=3D..= . > > Another alternative might be EAstrings (encoding aware strings). > It has an IO child package. It's part of AdaCL athttp://adacl.sourceforge= .net/ I've searched around Adacore's site, googling ath manually, but haven't found any references to their supporting Strings.Encodings in GNAT 2010. Still, it's very encouraging that ARG has proposed making encodings a standard part of the language. I don't know of any other languages that make character encoding part of the standard, though I'm pretty ignorant when it comes to the vast majority of languages out there. Also, I keep forgetting about AdaCL. I've been meaning to try it out for a long time. Perhaps this is just the right place to start. -- deadlyhead