From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a0c:c409:: with SMTP id r9mr4090459qvi.123.1595345765590; Tue, 21 Jul 2020 08:36:05 -0700 (PDT) X-Received: by 2002:a9d:68d1:: with SMTP id i17mr24364449oto.182.1595345765347; Tue, 21 Jul 2020 08:36:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 21 Jul 2020 08:36:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: <4666523c-0a72-4a00-ac71-9a6d24195752o@googlegroups.com> <5c70d600-1dae-490a-b7b6-581141c5743do@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <373c062e-6bc2-4f37-8403-792c0e16182bo@googlegroups.com> Subject: Re: Newbie questions re Unicode (1) From: Shark8 Injection-Date: Tue, 21 Jul 2020 15:36:05 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59487 List-Id: 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.