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.236.17.168 with SMTP id j28mr81607588yhj.0.1426752072434; Thu, 19 Mar 2015 01:01:12 -0700 (PDT) X-Received: by 10.140.34.56 with SMTP id k53mr1211235qgk.19.1426752072384; Thu, 19 Mar 2015 01:01:12 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!h3no3421266qgf.1!news-out.google.com!f74ni419qge.0!nntp.google.com!h3no3421263qgf.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 19 Mar 2015 01:01:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.210.2.69; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 105.210.2.69 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gtkada: CAIRO_STATUS_INVALID_STRING From: jan.de.kruyf@gmail.com Injection-Date: Thu, 19 Mar 2015 08:01:12 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:192512 Date: 2015-03-19T01:01:12-07:00 List-Id: On Thursday, March 19, 2015 at 2:50:56 AM UTC+2, hreba wrote: > I concatenate some strings created with Integer'Image and print them to > the screen with Cairo.Show_Text. A subsequent call to Cairo.Status > returns CAIRO_STATUS_INVALID_STRING. Calling Cairo.Show_Text with String > literals works fine. > > The comments of Show_Text subprogram say that the argument shall be a > "NUL-terminated string of text encoded in UTF-8, or Null_Ptr". Appending > ASCII.NUL did not help. So what can I do to make the String UTF-8? > > I am using the actual Ubuntu repository for Linux and GNAT GPL 2012 for > Windows, both with libgtkada2.24. > -- > Frank Hrebabetzky +55 / 48 / 3235 1106 > Florianopolis, Brazil google is your friend!! http://lists.adacore.com/pipermail/gtkada/2003-March/002102.html cheers, j.