From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-2.free.fr!not-for-mail From: Thomas Newsgroups: comp.lang.ada Mail-Copies-To: nobody Subject: Re: Ada and Unicode References: <607b5b20$0$27442$426a74cc@news.free.fr> <660e25a5-506b-43c0-b4ac-e7738e5500e5n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Date: Sun, 03 Apr 2022 21:20:19 +0200 Message-ID: Organization: Guest of ProXad - France NNTP-Posting-Date: 03 Apr 2022 21:20:20 CEST NNTP-Posting-Host: 91.175.52.121 X-Trace: 1649013620 news-2.free.fr 13452 91.175.52.121:4329 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:63691 List-Id: In article , Simon Wright wrote: > But don't use unit names containing international characters, at any > rate if you're (interested in compiling on) Windows or macOS: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81114 if i understand, Eric Botcazou is a gnu admin who decided to reject your bug? i find him very "low portability thinking"! it is the responsability of compilers and other underlying tools, to manage various underlying OS and FS, not of the user to avoid those that the compiler devs find too bad! (or to use the right encoding. i heard that Windows uses UTF-16, do you know about it?) clearly, To_Lower takes Latin-1. and this kind of problems would be easier to avoid if string types were stronger ... after: package Ada.Strings.UTF_Encoding ... type UTF_8_String is new String; ... end Ada.Strings.UTF_Encoding; i would have also made: package Ada.Directories ... type File_Name_String is new Ada.Strings.UTF_Encoding.UTF_8_String; ... end Ada.Directories; with probably a validity check and a Dynamic_Predicate which allows "". then, i would use File_Name_String in all Ada.Directories and Ada.*_IO. -- RAPID maintainer http://savannah.nongnu.org/projects/rapid/