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 0c6103cf50 * win32/win32.c, include/ruby/win32.h (rb_w32_fd_is_text): new function.
* win32/win32.c (init_stdhandle): set default mode of stdin as binmode.

* io.c (set_binary_mode_with_seek_cur): new function to replace
  SET_BINARY_MODE_WITH_SEEK_CUR macro.  now returns previous mode of the
  fd and take care of LF in rbuf.

* io.c (do_writeconv): set text mode when needed.

* io.c (io_read): need to change the mode of the IO to binmode
  temporally when the length for IO#read, because IO#read with length
  must behave so.

* test/ruby/test_io_m17n.rb (TestIO_M17N#est_{read_with_length,
  read_with_length_binmode,get[cs]_and_read_with_binmode,
  read_with_binmode_and_get[cs],read_write_with_binmode}): tests for
  above changes.

all patches are written by Hiroshi Shirosaki. [ruby-core:41496]
[Feature #5714]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-14 10:38:12 +00:00
..
backward * include/ruby/backward/classext.h: for evil gems. fixed #4803 2011-06-18 03:05:11 +00:00
defines.h * fix ANSI C compliance of r33757 2011-11-15 05:05:35 +00:00
encoding.h Introduce NEED_READCONV and NEED_WRITECONV to replace universal newline decorator 2011-12-04 01:10:06 +00:00
intern.h * object.c (rb_check_to_int): new function to convert a VALUE to 2011-12-11 01:37:50 +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(NUM2LONG, NUM2INT, NUM2SHORT, NUM2LL, 2011-11-15 05:57:34 +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,win32.h}, ext/socket/rubysocket.h: revert 2011-12-05 05:29:31 +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, include/ruby/win32.h (rb_w32_fd_is_text): new function. 2011-12-14 10:38:12 +00:00