* io.c (make_writeconv): fixed typo of previous commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-11-03 18:45:41 +00:00
Родитель 932d63efe0
Коммит 102ec1171d
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Fri Nov 4 03:45:22 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (make_writeconv): fixed typo of previous commit.
Fri Nov 4 01:56:30 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (make_writeconv): unversal_newline converter is for reading.

4
io.c
Просмотреть файл

@ -910,8 +910,8 @@ make_writeconv(rb_io_t *fptr)
ecopts = fptr->encs.ecopts;
#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_NEWLINE_DECORATOR_MASK) ||
(ecflags & ECONV_UNIVERSAL_NEWLINE_DECORATOR)))
ecflags &= ~ECONV_UNIVERSAL_NEWLINE_DECORATOR;
ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
#endif