ustring bug?
- From: Maik Beckmann <maikbeckmann gmx de>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: ustring bug?
- Date: Tue, 01 Aug 2006 20:19:10 +0200
Hello!
This code
<code>
#include <glibmm.h>
#include <iostream>
int main(int argc, char **argv) {
Glib::ustring ustr ( "h�" );
try {
Glib::locale_from_utf8(ustr);
} catch (Glib::ConvertError& e) {
std::cout << e.what() << std::endl;
}
return 0;
}
</code>
produces
<output>
Invalid byte sequence in conversion input
</output>
Is this the normal behavior of glibmm? If not, can some of you compile
it and give me response, please.
Thanks in advance, Maik
PS:
I'm using
glib-2.12.1
glibmm-2.11.3
on a gentoo-linux x86 maschine with this
maik localhost ~ $ locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=de_DE.utf8
locales.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]