[gtkada] UTF-8 in GtkAda 2.0

Preben Randhol randhol at pvv.org
Mon Mar 17 18:24:05 CET 2003


I was reading :

   http://developer.gnome.org/dotplan/porting/ar01s10.html#gtk-utf8

and it says:

    When a GTK+ 2.0 function takes a human-readable string as an
    argument, that string must be valid UTF-8. If you receive text from
    a file or from the network, always validate it with
    g_utf8_validate() before passing it to GTK+. Invalid UTF-8 will
    crash your program if you pass it to GTK+.

I cannot find this validate function/procedure in GtkAda. Is it not
needed?

Thanks in advance!

Preben



More information about the gtkada mailing list