Re: GIOChannel and german umlauts
- From: Tilman Sauerbeck <tilman code-monkey de>
- To: gtk-app-devel-list gnome org
- Subject: Re: GIOChannel and german umlauts
- Date: Fri, 20 Dec 2002 20:58:09 +0100
On Fri, Dec 20, 2002 at 12:57:50PM -0500, Owen Taylor wrote:
In my app, I'm not setting a encoding for the GIOChannel, i.e. encoding
is NULL. Now when I'm sending or receiving text that contains special
characters such as german umlauts, my application segfaults when
LC_CTYPE is not set to a locale that supports those characters:
e.g., when running with LC_CTYPE=de_DE it's working fine while running
with LC_CTYPE=POSIX will crash.
Setting the GIOChannels encoding to ISO-8859-1 doesn't help either.
"Doens't help" in what sense? It should convert the ISO-8859-1
to UTF-8. Which is genererally what you'd want in a GTK+-2.0 app.
(But remember, that you're users won't all be using ISO-8859-1)
Note that the default for GIOChannel is UTF-8, if you want no
conversion, you need to set the explicitely.
Thanks for the explanation. I didn't really know what effect
...set_encoding() has. I'm now converting to the currently used
charset and everything is working great :)
Regards,
Tilman
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]