- fix: Use the system default encoding for input when running problem cases.

This commit is contained in:
Roy Qu 2023-11-19 10:39:12 +08:00
parent b0a2fea7d1
commit 3aa9be81d3
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ Red Panda C++ Version 2.26
- fix: Crash if include a non-exist header file in the source.
- fix: Line numbers for problem case input/output/expected texteditors are not vertically centered.
- enhancement: E-ink color scheme.
- fix: Use the system default encoding for input when running problem cases.
Red Panda C++ Version 2.25

View File

@ -107,7 +107,7 @@ void OJProblemCasesRunner::runCase(int index,POJProblemCase problemCase)
if (fileExists(problemCase->inputFileName))
process.write(readFileToByteArray(problemCase->inputFileName));
else
process.write(problemCase->input.toUtf8());
process.write(problemCase->input.toLocal8Bit());
process.waitForFinished(0);
}