зеркало из https://github.com/github/ruby.git
* 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:
Родитель
102ec1171d
Коммит
a3ce319639
3
io.c
3
io.c
|
@ -911,9 +911,10 @@ make_writeconv(rb_io_t *fptr)
|
||||||
#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
|
#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
|
||||||
if (NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) &&
|
if (NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) &&
|
||||||
(!(ecflags & ECONV_NEWLINE_DECORATOR_MASK) ||
|
(!(ecflags & ECONV_NEWLINE_DECORATOR_MASK) ||
|
||||||
(ecflags & ECONV_UNIVERSAL_NEWLINE_DECORATOR)))
|
(ecflags & ECONV_UNIVERSAL_NEWLINE_DECORATOR))) {
|
||||||
ecflags &= ~ECONV_UNIVERSAL_NEWLINE_DECORATOR;
|
ecflags &= ~ECONV_UNIVERSAL_NEWLINE_DECORATOR;
|
||||||
ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
|
ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!fptr->encs.enc || (fptr->encs.enc == rb_ascii8bit_encoding() && !fptr->encs.enc2)) {
|
if (!fptr->encs.enc || (fptr->encs.enc == rb_ascii8bit_encoding() && !fptr->encs.enc2)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче