From 3a01b9ec912ba82dca72e0a033170f70d88703f2 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 30 Jun 2013 05:06:43 +0000 Subject: win32: UTF-8 spawn * test/ruby/test_process.rb (test_spawn_nonascii): assertions for non-ascii arguments. [ruby-core:24309] [Bug #1771] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 8c70e8412f..9a01b60acd 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1631,6 +1631,8 @@ EOS assert_equal("ok\n", `#{exename} /c echo ok`, msg) assert_equal("ok\n", IO.popen("#{exename} /c echo ok", &:read), msg) assert_equal("ok\n", IO.popen(%W"#{exename} /c echo ok", &:read), msg) + File.binwrite("#{name}.txt", "ok") + assert_equal("ok", `type #{name}.txt`) end end end if windows? -- cgit v1.2.3