diff --git a/ChangeLog b/ChangeLog index 4294123cea..cae70dfe8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 9 19:50:36 2004 Nobuyoshi Nakada + + * io.c (rb_io_getline): should not treat char as negative value. + [ruby-dev:24460] + Fri Oct 8 21:36:56 2004 Minero Aoki * lib/fileutils.rb (fu_traverse): return value of Dir.entries is @@ -19,12 +24,12 @@ Thu Oct 7 23:47:57 2004 Hidetoshi NAGAI * ext/tk/lib/tk/scrollbar.rb: When 'set' operation, a scrollbar cannot propagate view port information from the source widget - (that calls 'set') to other assigned widgets. + (that calls 'set') to other assigned widgets. Thu Oct 7 17:36:25 2004 Hidetoshi NAGAI * ext/tk/lib/tk.rb: When CHILDKILLED and so on, Tk.errorCode returns - a Fixnum for 2nd element (it's pid) of the return value. + a Fixnum for 2nd element (it's pid) of the return value. Thu Oct 7 12:55:04 2004 Yukihiro Matsumoto diff --git a/io.c b/io.c index 52e71f3df2..98e3329ba2 100644 --- a/io.c +++ b/io.c @@ -1405,7 +1405,7 @@ rb_io_getline(rs, fptr) swallow(fptr, '\n'); } else if (rslen == 1) { - return rb_io_getline_fast(fptr, RSTRING(rs)->ptr[0]); + return rb_io_getline_fast(fptr, (unsigned char)RSTRING(rs)->ptr[0]); } else { rsptr = RSTRING(rs)->ptr;