problems with Glib::locale_from_utf8

2005-04-25 Thread Aaron Walker
-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 ([EMAIL PROTECTED])
at convert.cc:192
#9  0xb7e49b9f in Glib::operator ([EMAIL PROTECTED], [EMAIL PROTECTED])
at ustring.cc:1202
#10 0x0804999e in XMLParser::on_characters (this=0xb120, [EMAIL PROTECTED])
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 [EMAIL PROTECTED]
[ 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-
___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: problems with Glib::locale_from_utf8

2005-04-25 Thread Murray Cumming
On Mon, 2005-04-25 at 10:59 -0400, Aaron Walker wrote:
 -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.

Do you have the latest libxml++? We fixed a UTF8 bytes/characters
confusion recently.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list