1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (rb_io_binmode): inverted condition. [ruby-dev:23349]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-04-08 10:03:38 +00:00
parent 65e7842b09
commit 4732bf25f5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Apr 8 19:03:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_binmode): inverted condition. [ruby-dev:23349]
Thu Apr 8 18:22:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/iconv/iconv.c (iconv_s_list): return encoding list if no block

2
io.c
View file

@ -2150,7 +2150,7 @@ rb_io_binmode(io)
OpenFile *fptr;
GetOpenFile(io, fptr);
if ((fptr->mode & FMODE_BINMODE) && READ_DATA_BUFFERED(fptr->f)) {
if (!(fptr->mode & FMODE_BINMODE) && READ_DATA_BUFFERED(fptr->f)) {
rb_raise(rb_eIOError, "buffer already filled with text-mode content");
}
#ifdef __human68k__