[gtkada] How to store an UTF8-String
Adrian Knoth
adi at drcomp.erfurt.thur.de
Sun Dec 22 15:19:42 CET 2002
On Sat, Dec 21, 2002 at 12:19:46PM +0100, Adrian Knoth wrote:
> procedure gtktest is
> output : String := Locale_To_UTF8 ("ä");
> begin
> null;
> end gtktest;
>
> adi at drcomp:~/ada/work/test/neu/db2utf8$ ./gtktest
>
> raised INTERFACES.C.STRINGS.DEREFERENCE_ERROR : i-cstrin.adb:182
It's for sure that GtkAda is correct, because the following line
returns a NULL-pointer:
g_locale_to_utf8 ("ä", strlen ("ä"), NULL, NULL, NULL) == NULL)
Perhaps some variables need to be set via Gtk.Main?
--
mail: adi at thur.de http://adi.thur.de PGP: v2-key via keyserver
Lieber Delirium als gar kein Schlaf.
More information about the gtkada
mailing list