Re: GIOChannel and german umlauts



On Mon, Dec 23, 2002 at 05:01:47PM -0500, Havoc Pennington wrote:
On Mon, Dec 23, 2002 at 05:34:07PM +0100, Tilman Sauerbeck wrote: 
On my box, the application just "hangs" when it's supposed to read from
the io channel, on another box it segfaults. 

Is there anything I can do about it?

Put a test case showing the problem in bugzilla.gnome.org, it
shouldn't hang or segfault. Be sure you're handling errors when
reading from the channel though, as it should report an error.

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.

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.

Tilman




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]