https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?14253458252013-07-14T16:32:28ZRuby Issue Tracking SystemRuby trunk - Bug #8634: Segfault with sprintf of force_encoding('UTF-16LE') on Windowshttps://bugs.ruby-lang.org/issues/8634?journal_id=404942013-07-14T16:32:28ZNobuyoshi Nakadanobu@ruby-lang.org
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>Nobuyoshi Nakada</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Target version</strong> set to <i>2.1.0</i></li><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>1.9.3: DONTNEED, 2.0.0: DONTNEED</i></li></ul><p>fixing.</p>
Ruby trunk - Bug #8634: Segfault with sprintf of force_encoding('UTF-16LE') on Windowshttps://bugs.ruby-lang.org/issues/8634?journal_id=404962013-07-15T02:21:43ZNobuyoshi Nakadanobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</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 <a href="https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41967" class="changeset" title="string.c: consider old terminator * string.c (str_fill_term): consider old terminator length, an...">r41967</a>.<br>
Heesob, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>string.c: consider old terminator</p>
<ul>
<li>string.c (str_fill_term): consider old terminator length, and should
not use rb_enc_ascget since it depends on the current encoding which
may not be compatible with the new terminator. [Bug <a href="https://bugs.ruby-lang.org/issues/8634" class="issue tracker-1 status-5 priority-5 priority-high3 closed" title="Segfault with sprintf of force_encoding(&#x27;UTF-16LE&#x27;) on Windows (Closed)">#8634</a>]</li>
</ul>