https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2015-06-29T23:15:54Z
Ruby Issue Tracking System
Ruby master - Bug #11319: "w+" is interpreted as "r+" when reopening stdio streams
https://redmine.ruby-lang.org/issues/11319?journal_id=53157
2015-06-29T23:15:54Z
normalperson (Eric Wong)
normalperson@yhbt.net
<ul><li><strong>Assignee</strong> set to <i>normalperson (Eric Wong)</i></li><li><strong>Backport</strong> changed from <i>2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN</i> to <i>2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED</i></li></ul>
Ruby master - Bug #11319: "w+" is interpreted as "r+" when reopening stdio streams
https://redmine.ruby-lang.org/issues/11319?journal_id=53159
2015-06-29T23:25:21Z
Anonymous
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset r51066.</p>
<hr>
<p>io.c: reopen stdio streams correctly when given "w+"</p>
<ul>
<li>io.c (rb_io_oflags_modestr): handle O_TRUNC correctly</li>
<li>test/ruby/test_io.rb (test_reopen_stdio): new test</li>
</ul>
<p>Patch-by: cremno phobia <a href="mailto:cremno@mail.ru" class="email">cremno@mail.ru</a></p>
<p><a href="/issues/11319">[ruby-core:69779]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: "w+" is interpreted as "r+" when reopening stdio streams (Closed)" href="https://redmine.ruby-lang.org/issues/11319">#11319</a>]</p>
Ruby master - Bug #11319: "w+" is interpreted as "r+" when reopening stdio streams
https://redmine.ruby-lang.org/issues/11319?journal_id=53774
2015-08-13T15:53:57Z
nagachika (Tomoyuki Chikanaga)
nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED</i> to <i>2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE</i></li></ul><p>Backported into <code>ruby_2_2</code> branch at r51568</p>