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,a82f86f344c98f79 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed3.funet.fi!newsfeeds.funet.fi!195.197.54.118.MISMATCH!feeder2.news.jippii.net!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIFBlcnNzb24=?= User-Agent: Thunderbird 1.5.0.5 (X11/20060808) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Avatox 1.0: Trouble with encoding in Windows References: <45051d37@news.upm.es> <45053aec$0$5142$9b4e6d93@newsspool1.arcor-online.net> <5ZednRK-0M3K15rYnZ2dnUVZ_o2dnZ2d@megapath.net> <4507e49f$0$26945$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Thu, 14 Sep 2006 22:13:43 GMT NNTP-Posting-Host: 83.250.106.238 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1158272023 83.250.106.238 (Fri, 15 Sep 2006 00:13:43 CEST) NNTP-Posting-Date: Fri, 15 Sep 2006 00:13:43 CEST Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:6585 Date: 2006-09-14T22:13:43+00:00 List-Id: I wrote: > Georg Bauhaus skrev: >> Maybe a standard configuration pragma can be devised that informs >> Ada source processors of the encoding used in files/compilation >> units/...? > > That would be great, I may need to revise that. I just noticed the definition of "configuration pragma": "Certain pragmas are defined to be /configuration pragmas/; they shall appear before the first compilation_unit of a compilation. [They are generally used to select a partition-wide or system-wide option.] The pragma applies to all compilation_units appearing in the compilation, unless there are none, in which case it applies to all future compilation_units compiled into the same environment." (ARM95 10.1.5(8)) I can't find a definition of "compilation", other than that it consists of any number of compilation units, but I guess that, in the case of Gnat, each invocation of Gnatmake is a single compilation. If so, then pragma Character_Encoding must not be a configuration pragma, because it would apply to any library units that Gnatmake decides to recompile, and those may be written by someone else in some other encoding. We could let pragma Character_Encoding apply to a single file, a single compilation unit, an entire hierarchy of child packages or whatever, but we can't have it apply to everything that happens to be compiled at the same time. It must be tied to a specific piece of code. -- Björn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu