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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:f215:: with SMTP id q21mr2757167ioh.25.1551446236953; Fri, 01 Mar 2019 05:17:16 -0800 (PST) X-Received: by 2002:a9d:5889:: with SMTP id x9mr3245261otg.109.1551446236791; Fri, 01 Mar 2019 05:17:16 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!y22no82535ita.0!news-out.google.com!d79ni178itc.0!nntp.google.com!y22no82534ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Mar 2019 05:17:16 -0800 (PST) In-Reply-To: <9975e218-29f2-4cd8-b8e6-eaa3b44593dc@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.242.59.251; posting-account=Q_zbpgoAAACg5YeFii9ZvtfXWVgahpU- NNTP-Posting-Host: 82.242.59.251 References: <9975e218-29f2-4cd8-b8e6-eaa3b44593dc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2a2429e0-1049-4da1-8d8d-35f731b04278@googlegroups.com> Subject: Re: Chess game in character over MS Windows From: manueledensenster@gmail.com Injection-Date: Fri, 01 Mar 2019 13:17:16 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55734 Date: 2019-03-01T05:17:16-08:00 List-Id: On Friday, March 1, 2019 at 2:07:21 PM UTC+1, manueled...@gmail.com wrote: > Hello, >=20 > I have inserted the 12 Wide_Character into a string of length 12 but gnat= make say at the ex=C3=A9cution : length check failed. >=20 > Help me please. >=20 >=20 > I have tested with UTF-8-auto-dos encoding with Emacs. >=20 > With GPS in UTF-8 is the same problem. >=20 > Thank you. Sorry bis. Ok, over MS Windows the problem is same over GPS or simple make with gnatma= ke and GtkAda. My program is an chess game in text in a GtkAda project. Sensibly the cocage of 12 Wide_Character is Ok. But the Chess character are not printed. I convert The literal Wide_Character with the line : [code] Locale_From_Utf8 =20 (Ada.Strings.UTF_Encoding.Conversions.Convert ("" & Images(Piece_Type'Pos(Piece)), UTF_8) ) [/code] To be inserted in gtk_text_buffer. Thank you for your help.