* io.c (make_writeconv): fixed typo of previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
102ec1171d
commit
a3ce319639
3
io.c
3
io.c
@ -911,9 +911,10 @@ make_writeconv(rb_io_t *fptr)
|
||||
#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
|
||||
if (NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) &&
|
||||
(!(ecflags & ECONV_NEWLINE_DECORATOR_MASK) ||
|
||||
(ecflags & ECONV_UNIVERSAL_NEWLINE_DECORATOR)))
|
||||
(ecflags & ECONV_UNIVERSAL_NEWLINE_DECORATOR))) {
|
||||
ecflags &= ~ECONV_UNIVERSAL_NEWLINE_DECORATOR;
|
||||
ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!fptr->encs.enc || (fptr->encs.enc == rb_ascii8bit_encoding() && !fptr->encs.enc2)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user