Author: allison
Date: Sun Nov 30 16:20:06 2008
New Revision: 33387

Modified:
   branches/pdd22io_part2/src/io/unix.c

Log:
[pdd22io] Line buffering always returns at least a newline, unless its at the 
end of the file.


Modified: branches/pdd22io_part2/src/io/unix.c
==============================================================================
--- branches/pdd22io_part2/src/io/unix.c        (original)
+++ branches/pdd22io_part2/src/io/unix.c        Sun Nov 30 16:20:06 2008
@@ -474,7 +474,7 @@
         }
         else {
             /* Read returned 0, EOF if len requested > 0 */
-            if (len > 0)
+            if (len > 0 || (file_flags & PIO_F_LINEBUF))
                 Parrot_io_set_flags(interp, filehandle, (file_flags | 
PIO_F_EOF));
             s->bufused = s->strlen = 0;
             return bytes;

Reply via email to