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,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Avatox 1.0: Trouble with encoding in Windows Date: Fri, 15 Sep 2006 06:34:05 +0100 Organization: Pushface Message-ID: References: <45051d37@news.upm.es> <45053aec$0$5142$9b4e6d93@newsspool1.arcor-online.net> <5ZednRK-0M3K15rYnZ2dnUVZ_o2dnZ2d@megapath.net> <1158145462.921837.152720@i42g2000cwa.googlegroups.com> <1158224191.059815.103080@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1158298446 16551 62.49.19.209 (15 Sep 2006 05:34:06 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 15 Sep 2006 05:34:06 +0000 (UTC) Cancel-Lock: sha1:fADUwSg6vn9NJuQI9f6nthJFFwQ= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:6588 Date: 2006-09-15T06:34:05+01:00 List-Id: "Martin Krischik" writes: > vgodunko@rostel.ru schrieb: > >> Randy Brukardt wrote: >> > >> > ASIS 99 currently returns identifiers in Wide_Strings. That is enough to >> > handle all possible Ada 95 programs. I suspect that the problem is in the >> > XML conversion tool not handling Wide_Characters properly and not with ASIS. >> > (Or just as likely, the XML processing tools not handling UTF-8 properly.) >> > >> This is known ASIS for GNAT problem. AdaCore's GNAT/ASIS don't support >> source code recoding. It correctly work only for ASCII and UTF-8 >> encodings (this require compiling with -gnatW8 switch). > > Well, that effectivly means we all need to compile with: > > "-gnatiw", -- Wide-character codes > allowed in identifiers > "-gnatW8", -- UTF-8 encoding > > in order to be fully ASIS compatible. Good to know that both VIM and > new GPS 4.0 support Utf-8. Manuel's bisiesto example makes GNAT 4.0.0, GPL 2005 and GPL 2006 hang if compiled with -gnatW8. On this Powerbook, anyway. If compiled without, asis2xml fails with the exception UNICODE.CES.INVALID_ENCODING but since I haven't actually thought about unicode this will probably be my fault!