From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: GtkAda and €
Date: Sat, 11 Sep 2021 06:26:29 -0700 (PDT) [thread overview]
Message-ID: <4b1683a1-6ad5-4692-b671-807db5b51f27n@googlegroups.com> (raw)
In-Reply-To: <shhuvp$1sik$1@gioia.aioe.org>
Dmitry A. Kazakov schrieb am Samstag, 11. September 2021 um 12:04:44 UTC+2:
> ...
> Ada 2X supports Unicode and GNAT supports Unicode sources.
>
> I never tried it but I suppose the following should work:
>
> Strings_Edit.UTF8.Handling.To_UTF8 ('€');
>
> Here '€' should be resolved to Wide_Character'('€') and then converted
> to a UTF-8 encoded String.
This does not work. Source files are in Latin_1 per default and € is beyond 255,
so GNAT cannot handle '€'. I tried to set the source file's character set
to Unicode UTF16 (in GPS, from the file's context menu choose "Properties...")
with terrible effects. A real nogo.
> As for labels, icons etc, I use GTK style properties.
I dare not try this...
> P.S. Inventors of GTK CSS sheets apparently misspelled the word "sheet",
> they should have used the letter 'i'! (:-))
Nice
next prev parent reply other threads:[~2021-09-11 13:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 17:56 GtkAda and € AdaMagica
2021-09-10 18:53 ` Dmitry A. Kazakov
2021-09-11 9:20 ` AdaMagica
2021-09-11 9:57 ` AdaMagica
2021-09-11 10:04 ` Dmitry A. Kazakov
2021-09-11 11:11 ` Emmanuel Briot
2021-09-11 12:47 ` Dmitry A. Kazakov
2021-09-11 13:26 ` AdaMagica [this message]
2021-09-11 13:51 ` AdaMagica
2021-09-11 14:13 ` Dmitry A. Kazakov
2021-09-11 17:46 ` Manuel Gomez
2021-09-12 7:04 ` AdaMagica
2021-09-12 11:44 ` Manuel Gomez
2021-09-13 7:21 ` Vadim Godunko
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox