- fix: Use the system default encoding for input when running problem cases.
This commit is contained in:
parent
b0a2fea7d1
commit
3aa9be81d3
1
NEWS.md
1
NEWS.md
|
@ -28,6 +28,7 @@ Red Panda C++ Version 2.26
|
||||||
- fix: Crash if include a non-exist header file in the source.
|
- 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.
|
- fix: Line numbers for problem case input/output/expected texteditors are not vertically centered.
|
||||||
- enhancement: E-ink color scheme.
|
- enhancement: E-ink color scheme.
|
||||||
|
- fix: Use the system default encoding for input when running problem cases.
|
||||||
|
|
||||||
Red Panda C++ Version 2.25
|
Red Panda C++ Version 2.25
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ void OJProblemCasesRunner::runCase(int index,POJProblemCase problemCase)
|
||||||
if (fileExists(problemCase->inputFileName))
|
if (fileExists(problemCase->inputFileName))
|
||||||
process.write(readFileToByteArray(problemCase->inputFileName));
|
process.write(readFileToByteArray(problemCase->inputFileName));
|
||||||
else
|
else
|
||||||
process.write(problemCase->input.toUtf8());
|
process.write(problemCase->input.toLocal8Bit());
|
||||||
process.waitForFinished(0);
|
process.waitForFinished(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue