зеркало из 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@33628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
932d63efe0
Коммит
102ec1171d
|
@ -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>
|
Fri Nov 4 01:56:30 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (make_writeconv): unversal_newline converter is for reading.
|
* io.c (make_writeconv): unversal_newline converter is for reading.
|
||||||
|
|
4
io.c
4
io.c
|
@ -910,8 +910,8 @@ make_writeconv(rb_io_t *fptr)
|
||||||
ecopts = fptr->encs.ecopts;
|
ecopts = fptr->encs.ecopts;
|
||||||
#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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче