[wx-dev] Solaris and X11 support?
Nancy Buehmann
Nancy.Buehmann at Sun.COM
Tue Apr 3 10:33:13 PDT 2007
Well, I took a week off for spring break, but I'm back.
I'm having better luck with the Solaris GTK build ("--with-gtk"). The
"treectrl" sample runs well with both a Unicode build as well as an ANSI
build. With a Unicode build, my app causes the pango_layout_set_text()
calls to report "Invalid UTF-8 string" messages (with my LANG shell
variable set to either "C" or "en_US.UTF-8"). The
pango_layout_set_text() routine expects to see a UTF-8 string. It
appears that the wxWidgets code properly translates input text into this
format. Unfortunately, the pango_layout_set_text() routine is a void,
so the calling (wxWidgets) code cannot tell whether pango is
complaining. The gtk/dcclient.cpp and gtk/window.cpp files contain many
of the more interesting pango_layout_set_text() calls.
This problem persists across wxWidgets 2.6.3, 2.8.0, and 2.8.2.
A nice pango reference appears at
http://developer.gnome.org/doc/API/2.0/pango/pango-Layout-Objects.html
. I don't know which version of pango is on my system. I see a
/usr/lib/pango/1.4.0/ directory. The pango libraries in /usr/lib have
"-1.0" in their file names.
To get around this pango problem, I built my app with an ANSI build of
wxWidgets.
Certainly, since the "treectrl" sample is okay, the suspicion moves to
my app.
More information about the wx-dev
mailing list