From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!news.uzoreto.com!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-2.free.fr!not-for-mail Subject: Re: Ada and Unicode Newsgroups: comp.lang.ada References: <607b5b20$0$27442$426a74cc@news.free.fr> From: DrPi <314@drpi.fr> Date: Mon, 19 Apr 2021 11:09:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Message-ID: <607d48d2$0$6213$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 19 Apr 2021 11:09:38 CEST NNTP-Posting-Host: 82.65.30.55 X-Trace: 1618823378 news-4.free.fr 6213 82.65.30.55:52311 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:61832 List-Id: Le 18/04/2021 à 02:02, Luke A. Guest a écrit : > > On 17/04/2021 23:03, DrPi wrote: >> Hi, >> >> I have a good knowledge of Unicode : code points, encoding... >> What I don't understand is how to manage Unicode strings with Ada. >> I've read part of ARM and did some tests without success. > > It's a mess imo. I've complained about it before. The official stance is > that the standard defines that a compiler should accept the ISO > equivalent of Unicode and that a compiler should implement a flawed > system, especially UTF-8 types, > http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-4-11.html > > Unicode is a bit painful, I've messed about with it to some degree here > https://github.com/Lucretia/uca. > > There are other attempts: > > 1. http://www.dmitry-kazakov.de/ada/strings_edit.htm > 2. https://github.com/reznikmm/matreshka (very heavy, many layers) > 3. https://github.com/Blady-Com/UXStrings > > I remember getting an exception converting from my unicode_string to a > wide_wide string for some reason ages ago. Thanks