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,d5b211b0c1ffcf3e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.232 with SMTP id ip8mr291658pbc.6.1340299269398; Thu, 21 Jun 2012 10:21:09 -0700 (PDT) MIME-Version: 1.0 From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Thu, 21 Jun 2012 12:21:06 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <3248f4fa-adc5-42e5-97f5-2f157192d0f5@googlegroups.com> <7cd5phn5j7lp.ltw3lkjwnjkz.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1340299268 27130 69.95.181.76 (21 Jun 2012 17:21:08 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 21 Jun 2012 17:21:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Path: l9ni3918pbj.0!nntp.google.com!news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feed.ac-versailles.fr!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail Date: 2012-06-21T12:21:06-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:7cd5phn5j7lp.ltw3lkjwnjkz.dlg@40tude.net... >> What are the major differences between C and Ada in how you must approach >> Unicode text processing? > > No differences: > > 1. Read the input > 2. Recode it into the format most useful for the application > 3. Do whatever processing in that format > 4. When output is needed, recode back > > The best choice, at least for compiler writing and GUI text editors is IMO > UTF-8. And Ada 2012 has added libraries which directly support the "recoding" Dmitry mentions above. (And I agree with UTF-8. Ada 2012 finally specifies that all Ada 2012 compilers have to support source code in UTF-8 format, so we now have a standard format for Ada source code. Finally.) Randy.