diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 10:51:11 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 10:51:11 +0000 |
| commit | 79498bb16edc2b5604406b4c4888a3631519e536 (patch) | |
| tree | 0e8a8365324d166703a2bb70af6df055943f0c02 | |
| parent | 0795c39db8ba108dbab52c2f6161c6ad5b268058 (diff) | |
* io.c (rb_io_getline): should not treat char as negative value.
[ruby-dev:24460]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | io.c | 2 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Sat Oct 9 19:50:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_getline): should not treat char as negative value. + [ruby-dev:24460] + Fri Oct 8 09:49:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org> * pack.c (pack_pack): pointer modification check before each @@ -11,12 +16,12 @@ Thu Oct 7 23:47:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * 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 <nagai@ai.kyutech.ac.jp> * 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 <matz@ruby-lang.org> @@ -1278,7 +1278,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; |
