Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-07-13T21:08:42ZRuby Issue Tracking System
Redmine Ruby master - Bug #1771 (Closed): system()/popen()/popen3() & windows & unicode is not workinghttps://bugs.ruby-lang.org/issues/17712009-07-13T21:08:42Zjkubos (Jarek Kuboš)jkubos@amberg.cz
<p>=begin<br>
Hi,</p>
<p>I am very happy from progress in Unicode support on Windows.</p>
<p>There is issue describing pending functionality regarding files (<a href="http://redmine.ruby-lang.org/issues/show/1685" class="external">http://redmine.ruby-lang.org/issues/show/1685</a>). But I found another important area - opening processes.</p>
<a name="This-code-shows-not-working-if-that-file-exists-it-is-not-opened-by-notepad-functions"></a>
<h2 >This code shows not working (if that file exists, it is not opened by notepad) functions:<a href="#This-code-shows-not-working-if-that-file-exists-it-is-not-opened-by-notepad-functions" class="wiki-anchor">¶</a></h2>
<a name="encoding-UTF-8"></a>
<h1 >encoding: UTF-8<a href="#encoding-UTF-8" class="wiki-anchor">¶</a></h1>
<p>fname = "của_zufällige_žluťoučký_გამეორებ_разлога_和新加坡以及东.txt"</p>
<h2>system("notepad.exe #{fname}")<br>
IO.popen("notepad.exe #{fname}")<br>
Open3.popen3("notepad.exe #{fname}")</h2>
<p>I tried to open notepad from command line with same parameters and it works.</p>
<p>Best regards<br>
Jarek</p>
<p>PS: I am sorry if I choose wrong fix version...<br>
=end</p>