1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
usa add77a592b * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_READ_MASK,
ECONV_NEWLINE_DECORATOR_WRITE_MASK): new macro.

* io.c (rb_io_extract_modeenc, pipe_open, prep_stdio, argf_next_argv):
  set TEXTMODE_NEWLINE_DECORATOR_ON_WRITE for textmode on creating IO
  if the flag is available.

* io.c (make_writeconv): drop decorators for reading.

* io.c (make_readconv): drop decorators for writing.

* io.c (do_writeconv): existing writeconv is not the condition to raise
  ArgumentError.  should check textmode or not.

* test/ruby/test_io_m17n.rb
  (TestIO_M17N#test_{cr,lf,crlf}_decorator_on_stdout): test above
  changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-07 17:48:11 +00:00
..
backward * include/ruby/backward/classext.h: for evil gems. fixed #4803 2011-06-18 03:05:11 +00:00
defines.h * include/ruby/defines.h: use "__sparc" instead of "sparc" and 2011-10-25 12:54:21 +00:00
encoding.h * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_READ_MASK, 2011-11-07 17:48:11 +00:00
intern.h * include/ruby/intern.h (rb_fd_fix_cloexec): renamed from 2011-10-31 12:49:16 +00:00
io.h * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for rb_wait_for_single_fd(). 2011-05-04 01:07:03 +00:00
missing.h * numeric.c (rb_infinity, rb_nan): use union to prevent bus error 2011-10-21 17:34:58 +00:00
oniguruma.h * include/ruby/oniguruma.h (ONIGENC_CTYPE_SPECIAL_MASK): 2010-10-28 11:07:25 +00:00
re.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
regex.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
ruby.h * include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined. 2011-10-27 00:59:46 +00:00
st.h * include/ruby/st.h: parenthesize macro arguments. 2011-04-12 11:54:28 +00:00
subst.h * include/ruby/subst.h (snprintf): redefinition moved from ruby.h. 2010-08-07 22:19:17 +00:00
util.h * util.c, include/ruby/util.h (ruby_add_suffix): remove the function. 2011-08-03 07:10:56 +00:00
version.h * include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved 2010-08-23 21:08:19 +00:00
vm.h * vm.c (ruby_vm_at_exit): new API. This enables extension libs to 2010-12-02 11:06:32 +00:00
win32.h * win32/win32.c (setfl): extract from fcntl(). 2011-10-31 04:16:11 +00:00