fix encoding
This commit is contained in:
parent
7e3f394603
commit
667eb96ff6
|
@ -24,11 +24,11 @@ class Compiler(object):
|
|||
max_stack=128 * 1024 * 1024,
|
||||
max_output_size=1024 * 1024,
|
||||
max_process_number=_judger.UNLIMITED,
|
||||
exe_path=_command[0],
|
||||
exe_path=_command[0].encode("utf-8"),
|
||||
# /dev/null is best, but in some system, this will call ioctl system call
|
||||
input_path=src_path,
|
||||
output_path=compiler_out,
|
||||
error_path=compiler_out,
|
||||
input_path=src_path.encode("utf-8"),
|
||||
output_path=compiler_out.encode("utf-8"),
|
||||
error_path=compiler_out.encode("utf-8"),
|
||||
args=[item.encode("utf-8") for item in _command[1::]],
|
||||
env=[("PATH=" + os.getenv("PATH")).encode("utf-8")],
|
||||
log_path=COMPILER_LOG_PATH,
|
||||
|
|
Loading…
Reference in New Issue