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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: gtkada: CAIRO_STATUS_INVALID_STRING Date: Thu, 19 Mar 2015 09:50:49 +0100 Organization: cbb software GmbH Message-ID: <1ed8kenr6wxth.152pqv1fofwjy$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: OpkKbm9QwHUq0Y4SxjI2mw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.giganews.com comp.lang.ada:192514 Date: 2015-03-19T09:50:49+01:00 List-Id: On Wed, 18 Mar 2015 21:50:51 -0300, hreba wrote: > 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? String is UTF-8 so long you use ASCII codes only. Should you use Latin-1 you must convert to UTF-8. (NUL is added by bindings when the argument String and not char_array or chars_ptr) > I am using the actual Ubuntu repository for Linux and GNAT GPL 2012 for > Windows, both with libgtkada2.24. 2.24 is way outdated. The actual version GNAT GPL supports is 3.8. There were not so many changes regarding Cairo, though text rendering works slightly different in 3.x especially when connected with Cairo context transformations. I don't remember details. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de