https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112011-05-20T06:52:31ZRuby Issue Tracking SystemRuby master - Feature #4742: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)https://bugs.ruby-lang.org/issues/4742?journal_id=171002011-05-20T06:52:31Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li></ul> Ruby master - Feature #4742: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)https://bugs.ruby-lang.org/issues/4742?journal_id=171292011-05-21T22:20:45Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r31671.<br>
Roger, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>io.c (rb_io_extract_modeenc): accept combination hash and<br>
File::Constants. (eg. File.open('yo', :mode => File::WRONLY))<br>
[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT) (Closed)" href="https://bugs.ruby-lang.org/issues/4742">#4742</a>]<a href="/issues/4742">[ruby-core:36338]</a></li>
<li>test/ruby/test_io.rb (TestIO#test_open_mode): new test.</li>
</ul> Ruby master - Feature #4742: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)https://bugs.ruby-lang.org/issues/4742?journal_id=171302011-05-21T22:22:15Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Assignee</strong> set to <i>kosaki (Motohiro KOSAKI)</i></li><li><strong>Target version</strong> set to <i>1.9.3</i></li></ul>