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!JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Ada and Unicode Date: Sun, 18 Apr 2021 01:02:06 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <607b5b20$0$27442$426a74cc@news.free.fr> NNTP-Posting-Host: JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61810 List-Id: 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.