Commit fe11025a authored by Yuan Zhixiang's avatar Yuan Zhixiang
Browse files

修复input不能包含127以外字符的bug

parent 5cab7ab1
...@@ -95,7 +95,7 @@ if gcc_retcode == 0: ...@@ -95,7 +95,7 @@ if gcc_retcode == 0:
stdout=PIPE, stdout=PIPE,
stdin=PIPE, stdin=PIPE,
stderr=PIPE) stderr=PIPE)
valgrind_p.stdin.write(input_data.encode('utf-8')) valgrind_p.stdin.write(input_data)
(valgrind_stdout, valgrind_stderr) = valgrind_p.communicate() (valgrind_stdout, valgrind_stderr) = valgrind_p.communicate()
valgrind_retcode = valgrind_p.returncode valgrind_retcode = valgrind_p.returncode
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment