https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112016-05-27T08:09:52ZRuby Issue Tracking SystemRuby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=588632016-05-27T08:09:52Znobu (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 r55181.</p>
<hr>
<p>transcode.c: scrub in the given encoding</p>
<ul>
<li>transcode.c (str_transcode0): scrub in the given encoding when<br>
the source encoding is given, not in the encoding of the<br>
receiver. <a href="/issues/12431">[ruby-core:75732]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string i... (Closed)" href="https://bugs.ruby-lang.org/issues/12431">#12431</a>]</li>
</ul> Ruby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=590802016-06-08T05:46:40Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN</i> to <i>2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED</i></li></ul> Ruby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=601072016-08-15T19:02:14Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED</i> to <i>2.1: WONTFIX, 2.2: REQUIRED, 2.3: DONE</i></li></ul><p>ruby_2_3 r55905 merged revision(s) 55181.</p> Ruby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=601552016-08-16T11:39:24Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.1: WONTFIX, 2.2: REQUIRED, 2.3: DONE</i> to <i>2.1: WONTFIX, 2.2: DONE, 2.3: DONE</i></li></ul><p>ruby_2_2 r55936 merged revision(s) 55181.</p> Ruby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=665122017-09-06T14:37:21Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/13874">Bug #13874</a>: String#valid_encoding? has side effects</i> added</li></ul> Ruby master - Bug #12431: Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8https://bugs.ruby-lang.org/issues/12431?journal_id=760982019-01-07T05:47:30Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/8123">Bug #8123</a>: Transcoding exception when using replace along with universal_newline</i> added</li></ul>