From: Motohiro KOSAKI Date: 2012-01-03T09:52:24+09:00 Subject: [ruby-core:41879] [Backport93 - Backport #5791] Please backport r34043, r34045 Issue #5791 has been updated by Motohiro KOSAKI. maybe, following commit is necessary too. ------------------------------------------------------------------------ r34132 | shirosaki | 2011-12-26 08:49:31 -0500 (Mon, 26 Dec 2011) | 17 lines * io.c (rb_sys_fail_path): move the definition. Move above for using it in set_binary_mode_with_seek_cur(). * io.c (set_binary_mode_with_seek_cur): fix improper seek cursor. Seeking file cursor with setting binary mode has possibility to cause infinite loop. Fixed the bug and refined error handling. Introduced at r34043. And cleanups as below. Remove unnecessary parentheses of `fptr`. Use return value of setmode(). * test/ruby/test_io_m17n.rb (TestIO_M17N#test_seek_with_setting_binmode): add a test for abobe. [ruby-core:41671] [Bug #5714] ---------------------------------------- Backport #5791: Please backport r34043, r34045 https://bugs.ruby-lang.org/issues/5791 Author: Jon Forums Status: Open Priority: Normal Assignee: Category: Target version: Please backport r34043 and it's fixup r34045 to ruby_1_9_3. -- http://redmine.ruby-lang.org