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

Re: NUL chars and g_io_channel_read_chars



On Mon, 1 Mar 2004 14:41:41 -0300
John Coppens <john@jcoppens.com> wrote:

> Hello people.
> 
> I was writing a small program to communicate with a GPS. Receiving NMEA
> data went well, but when I tried to implement the (binary) TSIP
> protocol, I find that my program hangs. Some data:
> 

Sorry all... Hadn't seen that by default, input passes thru UTF-8 coding,
so the code filter was clobbering my binary data. Calling
g_io_channel_set_encoding with NULL, solved the problem!

John



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