Re: Pango Warning
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: Pango Warning
- Date: Mon, 11 Sep 2006 08:52:35 +0200
On Mon, Sep 11, 2006 at 10:51:17AM +0530, shibu Alampatta wrote:
I'm using a combo box, code is given below
char a[15];
strcpy(a,"AAA");
glist_append(glist,a);
It reports
Pango Warning**: Invalid UTF-8 string passed to pango_layout_set_text()
The posted code does not print this warning (try yourself)[*].
The problem is elsewhere where you pass a non-UTF-8 encoded
text, or maybe some random rubbish, to a Gtk+ function as
a string.
Yeti
[*] It contains two probable bugs however, one is not using
the return value of g_list_append() likely leading to a
memory leak, another is the use of strcpy() prone to buffer
overflows.
--
Anonyms eat their boogers.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]