[Vala] bug in IOChannel.read_line and add_watch

2014-02-02 Thread rastersoft
Hi all: I found a bug in IOChannel.read_line: when the line to read ends in \r and there are no more characters after it, the iochannel can't read more chars, nor send more IN DATA AVAILABLE events from an add_watch. In fact, it seems to lock the gtk main loop. I attach a code that triggers

Re: [Vala] bug in IOChannel.read_line and add_watch

2014-02-02 Thread Maciej Piechotka
On Sun, 2014-02-02 at 14:10 +0100, rastersoft wrote: Hi all: Hi, I found a bug in IOChannel.read_line: when the line to read ends in \r and there are no more characters after it, the iochannel can't read more chars, nor send more IN DATA AVAILABLE events from an add_watch. In fact, it

Re: [Vala] bug in IOChannel.read_line and add_watch

2014-02-02 Thread rastersoft
Hi! Yes, after checking the c code generated, I found it, so I filled a bug at bugzilla. Thanks anyway for the tip! El 02/02/14 15:53, Maciej Piechotka escribió: On Sun, 2014-02-02 at 14:10 +0100, rastersoft wrote: Hi all: Hi, I found a bug in IOChannel.read_line: when the line to read