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,bde6706c124e6eed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Nov 2005 16:14:01 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1653090.31FM62oI6I@linux1.krischik.com> Subject: Re: Filenames in Ada Date: Wed, 23 Nov 2005 16:18:05 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-eBy5Q2xPS7zDFoniV8rqrh4E8H3zH7Y6jykO7bEd2/2bpQVy91FojmyiD592FeAjjYjYKKsntshWl8a!Z9HhLbrdDDLYdNhqJeLQ6LXX3gVZF6o3qeSAbT6NKQ+Rf3mdQwZfZGoccmS1+Px8PVbTxVC5QvPE X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6565 Date: 2005-11-23T16:18:05-06:00 List-Id: "Martin Krischik" wrote in message news:1653090.31FM62oI6I@linux1.krischik.com... ... > How does one deal with modern (utf-8) filenames in Ada? We talked about this briefly at a recent meeting. We decided it was too late to design a proper solution, and virtually all operating systems have a way to deal with this anyway. (That is that they take UTF-8 names). There's no conceptual problem with putting UTF-8 into a value of type String, and as someone else showed, that's typcially supported by Ada implementations. A bigger problem is that Ada (any flavor) has no built-in support for UTF-8. I think this is a mistake, but I didn't find much support for adding any packages. It's insane to use Wide_Wide_String to store any significant amount of text, as it would waste nearly 3/4s of the space in typical use, so you'd have to use something else (like UTF-8) for storage anyway. Since filenames are implementation-defined anyway, there isn't a whole lot of value to standardizing how they're written. So, it's just up to your implementer to do something appropriate. Randy Brukardt.