https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-06-05T21:41:58ZRuby Issue Tracking SystemRuby master - Bug #8496: String#b does not check the code range properlyhttps://redmine.ruby-lang.org/issues/8496?journal_id=397182013-06-05T21:41:58Zknu (Akinori MUSHA)knu@ruby-lang.org
<ul></ul><p>A patch is attached.</p>
<p>This problem also applies to ruby_2_0_0.</p> Ruby master - Bug #8496: String#b does not check the code range properlyhttps://redmine.ruby-lang.org/issues/8496?journal_id=397222013-06-05T23:13:10Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>coderange_scan may cost too much time, so commit it with ENC_CODERANGE_CLEAR(str);.</p> Ruby master - Bug #8496: String#b does not check the code range properlyhttps://redmine.ruby-lang.org/issues/8496?journal_id=397252013-06-06T00:05:51Zknu (Akinori MUSHA)knu@ruby-lang.org
<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 r41092.<br>
Akinori, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>string.c (String#b): Allow code range scan to happen later so<br>
ascii_only? on a result string returns the correct value.<br>
<a href="/issues/8496">[ruby-core:55315]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: String#b does not check the code range properly (Closed)" href="https://redmine.ruby-lang.org/issues/8496">#8496</a>]</li>
</ul>