https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292021-02-15T16:17:44ZRedmineRedmine - Patch #34750: Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGShttps://www.redmine.org/issues/34750?journal_id=1009892021-02-15T16:17:44ZGo MAEDA
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/100989/diff?detail_id=81827">diff</a>)</li></ul> Redmine - Patch #34750: Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGShttps://www.redmine.org/issues/34750?journal_id=1009922021-02-16T00:25:14ZGo MAEDA
<ul></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>Iconv library used in Redmine 2.6 and earlier supported these two encodings, but <code>String#encode</code> used in Redmine 3.0 and later does not.</p>
</blockquote>
<p>This is not correct. Redmine from 2.3 to 2.6 uses Iconv only when it runs on Ruby 1.8 (see <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/tags/2.6.10/lib/redmine/codeset_util.rb#L1">source:tags/2.6.10/lib/redmine/codeset_util.rb#L1</a>).</p>
<table>
<tr>
<th>Redmine version </th>
<th>Ruby version </th>
<th>uses Iconv? </th>
</tr>
<tr>
<td style="text-align:center;">< 2.3 </td>
<td style="text-align:center;">- </td>
<td style="text-align:center;">yes </td>
</tr>
<tr>
<td style="text-align:center;">2.3 to 2.6 </td>
<td style="text-align:center;">1.8 </td>
<td style="text-align:center;">yes </td>
</tr>
<tr>
<td style="text-align:center;">2.3 to 2.6 </td>
<td style="text-align:center;">>= 1.9 </td>
<td style="text-align:center;">no </td>
</tr>
<tr>
<td style="text-align:center;">>= 3.0 </td>
<td style="text-align:center;">- </td>
<td style="text-align:center;">no </td>
</tr>
</table>
<p>So, ISO-2022-KR and ISCII91 are available only when all of the following conditions are met.</p>
<ul>
<li>Redmine version is 2.6.x or earlier</li>
<li>Ruby version is 1.8.x or earlier</li>
</ul> Redmine - Patch #34750: Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGShttps://www.redmine.org/issues/34750?journal_id=1009972021-02-16T09:51:01ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Remove unsupported ISO-2022-KR and ISCII91 from Setting::ENCODINGS</i> to <i>Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGS</i></li><li><strong>Target version</strong> set to <i>4.2.0</i></li></ul><p>Setting the target version to 4.2.0.</p> Redmine - Patch #34750: Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGShttps://www.redmine.org/issues/34750?journal_id=1010002021-02-17T12:24:24ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li></ul><p>Committed the patch.</p>