Your problem is discussed in bug
661588, https://bugzilla.gnome.org/show_bug.cgi?id=661588
The solution recommended there is #include <locale> std::locale::global(std::locale("")); but your solution is probably good enough. The documentation of Glib::ustring says you shall add output.imbue(std::locale("")); but it doesn't work. That's why the bug was filed. (In your case output is std::cout.) Kjell 2012-11-05 18:11, Giuseppe Penone skrev: #include <locale.h> |