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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: UTF-8 Output and "-gnatW8" Date: Fri, 25 Mar 2016 14:18:59 -0500 Organization: JSA Research & Innovation Message-ID: References: <35689862-61dc-4186-87d3-37b17abed5a2@googlegroups.com> <3a65e71c-41ee-49eb-916d-c0be8be9abc6@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1458933540 16026 24.196.82.226 (25 Mar 2016 19:19:00 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 25 Mar 2016 19:19:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:29886 Date: 2016-03-25T14:18:59-05:00 List-Id: wrote in message news:3a65e71c-41ee-49eb-916d-c0be8be9abc6@googlegroups.com... ... >Second are the character set(s) when an Ada program reads from or writes to >files >or other devices. The Ada standard defines that binding for Text_IO, >Wide_Text_IO, >etc. Notice that this is about character sets, not character encodings. >You could have >a Form string "UTF8" for files, with a Wide_Text_IO version that understood >it. Same >for "Unicode" and so on. The program would only see ISO-10646 characters, >but the >generated files would be much smaller. ;-) Or you could use Ada.Strings.Encodings to convert the string to UTF-8 and then use Ada.Text_IO to output it. (This is an end-run round strong typing, sadly, but it works.) Randy. P.S. Robert, nice to hear from you again. It's been a while, hope you're doing well.