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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.144.133 with SMTP id sm5mr4826810pab.5.1384607549823; Sat, 16 Nov 2013 05:12:29 -0800 (PST) X-Received: by 10.49.27.137 with SMTP id t9mr151qeg.34.1384607549728; Sat, 16 Nov 2013 05:12:29 -0800 (PST) Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!z6no9269119pbz.1!news-out.google.com!9ni31757qaf.0!nntp.google.com!i2no3073513qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 16 Nov 2013 05:12:29 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=31.183.18.217; posting-account=fc1UmgoAAADREbhuD8e4smj7nsEdRFz9 NNTP-Posting-Host: 31.183.18.217 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <73e0853b-454a-467f-9dc7-84ca5b9c29b2@googlegroups.com> Subject: strange behaviour of utf-8 files From: Stoik Injection-Date: Sat, 16 Nov 2013 13:12:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 1535 Xref: number.nntp.dca.giganews.com comp.lang.ada:183895 Date: 2013-11-16T05:12:29-08:00 List-Id: I am using gps 5.2.1 with utf-8 encoding in the editor. I tried to write a = simple routine to strip the diacritical marks from Polish texts. When execu= ting a test program, I got the "translation_error" message, and it turned o= ut that the string consisting of Polish letters was treated as double the p= roper length. You can try for yourself: with s: string :=3D "=F3"; we get s'length=3D2. Where is the hook? Is it a compiler error, gps error, = or my own one? Stoik