comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Newbie questions re Unicode (1)
Date: Tue, 21 Jul 2020 08:36:04 -0700 (PDT)	[thread overview]
Message-ID: <373c062e-6bc2-4f37-8403-792c0e16182bo@googlegroups.com> (raw)
In-Reply-To: <ly4kqbcpvj.fsf@pushface.org>

On Monday, July 13, 2020 at 10:59:46 AM UTC-6, Simon Wright wrote:
> Shark8  writes:
> 
> > Typically what I do here is:
> > (1) Right click the text-area in GPS, select properties; in the dialog
> > change the setting "character-set" to "Unicode UTF-8".
> > (2) At the top of the file, after "Pragma Ada_2012;" put " Pragma
> > Wide_Character_Encoding(UTF8);"
> > (3) Edit Project Properties: under Build, Switches, Ada there's a
> > text-box at the bottom; append "-gnatw8".
> 
> Do you have to do all 3?
> 
> Personally I wouldn't bother with (2) because (a) it's the default;
> unless (b) you're using GNAT CE, in which case it's the only
> possibility!

#2 isn't strictly necessary, no.
But if you're not using Pragma Restrictions( NO_IMPLEMENTATION_DEFINED_PRAGMAS ); it's nice to have in the program-text what the character-set is.

  reply	other threads:[~2020-07-21 15:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-12  8:14 Newbie questions re Unicode (1) Ian Douglas
2020-07-12  8:25 ` Simon Wright
2020-07-12  8:42   ` Ian Douglas
2020-07-12 18:43     ` Simon Wright
2020-07-12 20:08       ` Ian Douglas
2020-07-18 12:20       ` Bob Goddard
2020-07-21 19:57         ` Ian Douglas
2020-07-25 11:44           ` 196...@googlemail.com
2020-07-27 13:46             ` Ian Douglas
2020-07-27 20:26           ` Simon Wright
2020-07-29  7:28             ` Ian Douglas
2020-07-29  7:34               ` Ian Douglas
2020-07-29 15:26                 ` J-P. Rosen
2020-07-13 15:28 ` Shark8
2020-07-13 16:59   ` Simon Wright
2020-07-21 15:36     ` Shark8 [this message]
2020-07-21 19:54   ` Ian Douglas
2020-07-21 20:11     ` J-P. Rosen
replies disabled

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