From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,182c0df39337eeca X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!r3g2000prh.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Wide Character Problem in Ada.Numerics Date: 24 Apr 2007 09:35:11 -0700 Organization: http://groups.google.com Message-ID: <1177432510.964311.114370@r3g2000prh.googlegroups.com> References: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> <462daae8$1@news.post.ch> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1177432519 15178 127.0.0.1 (24 Apr 2007 16:35:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Apr 2007 16:35:19 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: r3g2000prh.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news1.google.com comp.lang.ada:15260 Date: 2007-04-24T09:35:11-07:00 List-Id: On Apr 24, 1:03 am, Jean-Pierre Rosen wrote: > Martin Krischik a =E9crit :>> This is the line that has the bracket notat= ion definition of pi in > >> it. > > >> Does anyone know what is going on? Why is there an error in a system > >> file? > > > Yes - I saw that to - GNAT produces this error if utf-8 (-gnatW8) is > > used for source code. Best is to file a bug report. > > Since, with the source model, specifications are recompiled every time > you need them, so is Ada.Numerics. With -gnatW8, you are telling the > compiler you are using utf-8, but the source of Ada.Numerics uses > bracket notation - hence the error. Wait a minute... are you saying that in GNAT, you cannot WITH a package unless the source of the WITH'ed package uses the same encoding as the source of the package doing the WITH'ing? Ouch. This somehow seems to run counter to the whole philosophy of abstraction that packages are supposed to provide. -- Adam