From 683eec7a5db10feeaef8aa1968f4d54af4fcfa9c Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Sep 2008 10:37:02 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ io.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 892ccb3674..83bd015cdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Sep 6 19:36:34 2008 Tanaka Akira + + * io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags. + Sat Sep 6 18:47:40 2008 Tanaka Akira * transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and diff --git a/io.c b/io.c index 1833835cc9..88217efe0a 100644 --- a/io.c +++ b/io.c @@ -3500,6 +3500,7 @@ rb_io_binmode(VALUE io) rb_econv_binmode(fptr->writeconv); fptr->mode |= FMODE_BINMODE; fptr->mode &= ~FMODE_TEXTMODE; + fptr->writeconv_pre_ecflags &= ~(ECONV_UNIVERSAL_NEWLINE_DECODER|ECONV_CRLF_NEWLINE_ENCODER|ECONV_CR_NEWLINE_ENCODER); return io; }