* io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f10af82d25
commit
683eec7a5d
@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 6 19:36:34 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags.
|
||||||
|
|
||||||
Sat Sep 6 18:47:40 2008 Tanaka Akira <akr@fsij.org>
|
Sat Sep 6 18:47:40 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
|
* transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
|
||||||
|
1
io.c
1
io.c
@ -3500,6 +3500,7 @@ rb_io_binmode(VALUE io)
|
|||||||
rb_econv_binmode(fptr->writeconv);
|
rb_econv_binmode(fptr->writeconv);
|
||||||
fptr->mode |= FMODE_BINMODE;
|
fptr->mode |= FMODE_BINMODE;
|
||||||
fptr->mode &= ~FMODE_TEXTMODE;
|
fptr->mode &= ~FMODE_TEXTMODE;
|
||||||
|
fptr->writeconv_pre_ecflags &= ~(ECONV_UNIVERSAL_NEWLINE_DECODER|ECONV_CRLF_NEWLINE_ENCODER|ECONV_CR_NEWLINE_ENCODER);
|
||||||
return io;
|
return io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user