Forum: Ruby-core system()/popen()/popen3() & windows & unicode is not working

Posted by mame (Yusuke Endoh) (Guest)
on 2012-12-09 13:41
(Received via mailing list)
Issue #1771 has been updated by mame (Yusuke Endoh).

Description updated

Usa-san, what's the status?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #1771: system()/popen()/popen3() & windows & unicode is not working
https://bugs.ruby-lang.org/issues/1771#change-34560

Author: jkubos (Jarek Kuboš)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: M17N
Target version: 2.0.0
ruby -v: ruby 1.9.2dev (2009-07-08) [i386-mswin32_90]


=begin
 Hi,

 I am very happy from progress in Unicode support on Windows.

 There is issue describing pending functionality regarding files 
(http://redmine.ruby-lang.org/issues/show/1685). But I found another 
important area - opening processes.

 This code shows not working (if that file exists, it is not opened by 
notepad) functions:
 ---------------------------------------
 # encoding: UTF-8

 fname = "của_zufällige_žluťoučký_გამეორებ_разлога_和新加坡以及东.txt"

 system("notepad.exe #{fname}")
 IO.popen("notepad.exe #{fname}")
 Open3.popen3("notepad.exe #{fname}")
 ---------------------------------------

 I tried to open notepad from command line with same parameters and it 
works.

 Best regards
 Jarek

 PS: I am sorry if I choose wrong fix version...
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.