comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: UTF-8 Output and "-gnatW8"
Date: Tue, 29 Mar 2016 09:44:35 +0200
Date: 2016-03-29T09:44:35+02:00	[thread overview]
Message-ID: <nddbpq$1qq5$1@gioia.aioe.org> (raw)
In-Reply-To: 6406289c-06a8-46d1-a633-8a1c8a22f79b@googlegroups.com

On 29/03/2016 00:48, Michael Rohan wrote:

> My approach is to encode myself and write the encoded Character via
> Text_IO,

Which is a bad idea, you know. Text_IO is not guaranteed to support 
UTF-8 encoding. Actually rather the opposite since Character is declared 
Latin-1. You should use Stream_IO instead of Text_IO.

> It does, however, feel like there is something missing where it's
> "difficult" to have a Wide_String literal without having to have extra
> meta data for compiler (-gnatW8) or having a relatively cumbersome
> concatenation of Wide_Character's based on code points.

Why don't you use UTF-8 strings instead?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2016-03-29  7:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 17:23 UTF-8 Output and "-gnatW8" Michael Rohan
2016-03-24 22:09 ` Randy Brukardt
2016-03-24 22:34   ` Michael Rohan
2016-03-25 19:15     ` Randy Brukardt
2016-03-25  5:54 ` rieachus
2016-03-25 19:18   ` Randy Brukardt
2016-03-28 22:48     ` Michael Rohan
2016-03-29  7:44       ` Dmitry A. Kazakov [this message]
2016-03-29  8:39       ` G.B.
2016-03-29 22:35       ` Randy Brukardt
2016-04-04 10:52         ` G.B.
2016-04-05  0:39           ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox