https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112015-12-14T12:43:33ZRuby Issue Tracking SystemRuby master - Bug #11648: Undocumented features of String#octhttps://bugs.ruby-lang.org/issues/11648?journal_id=555322015-12-14T12:43:33Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li></ul><p>It is surprising for me too. But this behavior was introduced in r373 by intention.<br>
I hope Matz remembers the original intention.</p>
<p>I guess Ruby followed the behavior of Perl and it was useful to handle string representation of file permissions?</p> Ruby master - Bug #11648: Undocumented features of String#octhttps://bugs.ruby-lang.org/issues/11648?journal_id=555442015-12-15T04:50:15Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset r53122.</p>
<hr>
<p>string.c: radix indicators [ci skip]</p>
<ul>
<li>string.c (rb_str_oct): [DOC] mention radix indicators.<br>
<a href="/issues/11648">[ruby-core:71310]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Undocumented features of String#oct (Closed)" href="https://bugs.ruby-lang.org/issues/11648">#11648</a>]</li>
</ul>