From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Newbie questions re Unicode (1) Date: Sun, 12 Jul 2020 09:25:44 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <4666523c-0a72-4a00-ac71-9a6d24195752o@googlegroups.com> NNTP-Posting-Host: IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:uJoZMcK/eGWND28GZT1Q8cnkFRE= Xref: reader01.eternal-september.org comp.lang.ada:59434 List-Id: Ian Douglas writes: > If I try to declare a variable using non-Latin, the compiler objects. > > φ : Long_Float := 1.6180339887; > > Why is that? > > I'm using UTF-8 in GPS. > > Apparently you need to pass -gnatW8 to the compiler, but I can't > figure out where in GPS to do that ... the "switches" page shows me > stuff for Pretty Printer. Edit. Project Properties, Build, Switches, Ada At the bottom of the page, there's a summary box, showing all the switches curently selected: you can type -gnatW8 directly in this box, even though there's no GUI for selecting it. By the way, if you're on Windows or macOS, don't use non-Latin characters in unit names! https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81114