https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17097754782012-10-12T16:56:08ZRuby Issue Tracking SystemRuby master - Bug #7140: TestWEBrickCGI#test_cgi fails on Windows with chcp 437https://redmine.ruby-lang.org/issues/7140?journal_id=303852012-10-12T16:56:08Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul><p>I can't make the decision to change the encoding of ENV now.<br>
In future version -- 3.0? -- we will be able to change it.</p>
<p>So, we should make a work around by changing test.<br>
Please commit it.</p> Ruby master - Bug #7140: TestWEBrickCGI#test_cgi fails on Windows with chcp 437https://redmine.ruby-lang.org/issues/7140?journal_id=303952012-10-12T17:36:40Zh.shirosaki (Hiroshi Shirosaki)h.shirosaki@gmail.com
<ul></ul><p>usa (Usaku NAKAMURA) wrote:</p>
<blockquote>
<p>I can't make the decision to change the encoding of ENV now.<br>
In future version -- 3.0? -- we will be able to change it.</p>
</blockquote>
<p>Is that means changing the encoding of ENV will solve the following inconsistency between input and output?</p>
<p>sh-3.1$ ./miniruby -e 'ENV["a"] = "/\xA4\xDB\xA4\xB2/\xA4\xDB\xA4\xB2"; p ENV["a"]'<br>
"/\xEF\xBD\xA4\xEF\xBE\x9B\xEF\xBD\xA4\xEF\xBD\xB2/\xEF\xBD\xA4\xEF\xBE\x9B\xEF\xBD\xA4\xEF\xBD\xB2"</p>
<blockquote>
<p>So, we should make a work around by changing test.<br>
Please commit it.</p>
</blockquote>
<p>Thanks. I'll commit it later.</p> Ruby master - Bug #7140: TestWEBrickCGI#test_cgi fails on Windows with chcp 437https://redmine.ruby-lang.org/issues/7140?journal_id=304402012-10-12T22:30:14ZAnonymous
<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 r37167.<br>
Hiroshi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>test_cgi.rb: skip a test on Windows</p>
<ul>
<li>test/webrick/test_cgi.rb (TestWEBrickCGI#test_cgi): skip a test<br>
depending on locale on Windows. ENV[] doesn't work properly if<br>
console code page is not equal to file system encoding.<br>
<a href="/issues/7140">[ruby-core:47910]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: TestWEBrickCGI#test_cgi fails on Windows with chcp 437 (Closed)" href="https://redmine.ruby-lang.org/issues/7140">#7140</a>]</li>
</ul>