Re: GIOChannel and german umlauts
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GIOChannel and german umlauts
- Date: Tue, 24 Dec 2002 18:04:39 -0500
On Tue, Dec 24, 2002 at 12:54:48PM +0100, Tilman Sauerbeck wrote:
It's the following situation:
I'm calling g_io_channel_read_line(), GError says "invalid byte sequence
in input", so it can't convert the string. This happens almost everytime
I read from the GIOChannel which causes my application's window not to
be redrawn anymore. When I lower the priority of the GIOChannel, my
windows are updated again.
That sounds like you keep trying to read over and over when there's an
error - you probably have to address the error somehow, or disconnect
the channel.
Is there any way to set the function called by g_io_channel_read_line()
to convert the input from the socket? Using g_convert_with_callback()
would help me.
I don't really know how this is intended to work. There may be some
clean solution that Owen and Ron had in mind while writing it.
I would guess that you can at the very least set the encoding to NULL
and do all the conversion yourself, though.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]