Project

General

Profile

Bug #15621 ยป break-env-system.rb

reproducible sample code - kenhys (Kentaro Hayashi), 02/25/2019 08:42 AM

 
1
# coding: cp932
2
ENV["PATH"] = [
3
  "?C???X?g?[??",
4
  ENV["PATH"],
5
].join(File::PATH_SEPARATOR)
6

    
7
env = {}
8
p ENV["PATH"]
9
system({}, "echo")
10
p ENV["PATH"]
11