diff options
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r-- | test/ruby/envutil.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 1824e548ed..7e52a8ffd7 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -76,6 +76,10 @@ module EnvUtil opt[:in] = in_c opt[:out] = out_c if capture_stdout opt[:err] = err_c if capture_stderr + if enc = opt.delete(:encoding) + out_p.set_encoding(enc) if out_p + err_p.set_encoding(enc) if err_p + end case args.first when Hash child_env = [args.shift] |