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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: gtkada: CAIRO_STATUS_INVALID_STRING Date: Wed, 18 Mar 2015 21:50:51 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net T5+v2UEBcJD80rheZx9njgQYJYDgyDdArgTI9JoTcPm/XD4RAW Cancel-Lock: sha1:drzs+ppEVgkvIDE8QSr1GcXa3Bc= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 Xref: number.nntp.giganews.com comp.lang.ada:192510 Date: 2015-03-18T21:50:51-03:00 List-Id: 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