From: Murray C. <mu...@mu...> - 2010-03-30 16:08:39
|
On Tue, 2010-03-23 at 10:54 -0400, Nic...@ga... wrote: > > It crashes with 'Glib::ConvertError'. Removing the UTF-8 characters fixes the problem, but obviously that's not a great solution. Also, if I do not attempt to 'cout' the field with UTF-8 characters, it also does not crash, but I need to output the field. Yes, this was a problem with the use of std::cout in the examples, not with the actual libxml++ implementation. You are not the first to notice it and it has bothered me for a while. I have committed a fix now that I've finally figured it out after talking to Daniel Elstner: http://git.gnome.org/browse/libxml ++/commit/?id=6f91e4489fba79f70c33029d2d9a76fd03fe6276 It adds this code to the main() of all the examples: std::locale::global(std::locale("")); -- mu...@mu... www.murrayc.com www.openismus.com |