kgio 1.3.1 - fix zero-length readsv1.3.1
commitf4d08a07a02393cca5ddd1277acc4f95c83307ff
authorEric Wong <e@yhbt.net>
Fri, 8 Oct 2010 21:55:16 +0000 (8 14:55 -0700)
committerEric Wong <e@yhbt.net>
Fri, 8 Oct 2010 22:19:59 +0000 (8 15:19 -0700)
treefe89efe76d8d066a5f5ddd676bb9dbbf469b98d2
parentd225ede82d820d045bd7cfb826f444cf6601577c
kgio 1.3.1 - fix zero-length reads

kgio_read and kgio_tryread will now return an empty string when
a length of zero is specified instead of nil (which would signal
an EOF).  This emulates the behavior of IO#read, IO#readpartial,
IO#sysread, IO#read_nonblock in core Ruby for consistency.
GIT-VERSION-GEN