Re: UTF8
- From: Guillaume Cottenceau <gc mandrakesoft com>
- To: Christian Borup <borup borup com>
- Cc: Gtk+ Perl <gtk-perl-list gnome org>
- Subject: Re: UTF8
- Date: 29 Oct 2002 00:42:15 +0100
Christian Borup <borup borup com> writes:
gtk2-perl should also be setting the utf8 flag on all strings returned
by gkt+. I tried getting this to work by the attached patch, but it
really doesn't. I added SvUTF8_on to newSVgchar but for GtkEntry's at
least it doesn't work, because the get_text method doesn't use
newSVgchar... oh well. Too tired to look into it more.
Warning, newSVgchar is a wrapper to convert a newly-allocated
gchar* into a perl object, to not leak memory when calling gtk
functions that do allocate a gchar* when called. If you look at
the prototype of gtk_entry_get_text, it isn't the case, so if you
use newSVgchar is will corrupt memory and possibly segfault on
you.
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]