problems with Glib::locale_from_utf8



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

I'm using libxml++ (which uses glibmm) to parse some XML, but am getting aborts
every time my parser class calls it's on_characters callback and tries to
display a word with a utf8 character.

#6  0xb7e2d298 in Glib::ConvertError::throw_func (gobject=0x805f908)
    at convert.cc:305
#7  0xb7e38fe4 in Glib::Error::throw_exception (gobject=0x805f908)
    at error.cc:174
#8  0xb7e2ca7f in Glib::locale_from_utf8 (utf8_string= 0xbfffeb70)
    at convert.cc:192
#9  0xb7e49b9f in Glib::operator<< (os= 0x804a218, utf8_string= 0xbfffeb70)
    at ustring.cc:1202
#10 0x0804999e in XMLParser::on_characters (this=0xbffff120, text= 0xbfffeb70)
    at test.cc:32

Looks like locale_from_utf8 throws an exception if g_locale_from_utf8 returns
an error (specifically G_CONVERT_ERROR_ILLEGAL_SEQUENCE).  I thought maybe my
utf8 setup was borked but I've got several other folks with supposedly working
utf8 setups who were able to reproduce.  This is probably more of a gtk-list
question but I figured I'd ask here first.

Anyone have an idea why this would be happening?

Thanks
- --
Kent's Heuristic:
	Look for it first where you'd most like to find it.

Aaron Walker <ka0ttic gentoo org>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCbQXWC3poscuANHARAuNGAKCP8fQfVYB2QGlWxeYviR/wm8xHMQCfQnK9
r62Hah3WcbisPKlPCWrCLgA=
=20ng
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]