mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-11-04 14:50:01 +08:00
fix encoding
This commit is contained in:
parent
7e3f394603
commit
667eb96ff6
@ -24,11 +24,11 @@ class Compiler(object):
|
|||||||
max_stack=128 * 1024 * 1024,
|
max_stack=128 * 1024 * 1024,
|
||||||
max_output_size=1024 * 1024,
|
max_output_size=1024 * 1024,
|
||||||
max_process_number=_judger.UNLIMITED,
|
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
|
# /dev/null is best, but in some system, this will call ioctl system call
|
||||||
input_path=src_path,
|
input_path=src_path.encode("utf-8"),
|
||||||
output_path=compiler_out,
|
output_path=compiler_out.encode("utf-8"),
|
||||||
error_path=compiler_out,
|
error_path=compiler_out.encode("utf-8"),
|
||||||
args=[item.encode("utf-8") for item in _command[1::]],
|
args=[item.encode("utf-8") for item in _command[1::]],
|
||||||
env=[("PATH=" + os.getenv("PATH")).encode("utf-8")],
|
env=[("PATH=" + os.getenv("PATH")).encode("utf-8")],
|
||||||
log_path=COMPILER_LOG_PATH,
|
log_path=COMPILER_LOG_PATH,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user