}
void ExecWrapper::processReadStdout() {
- _stdoutBuffer.append(_process.readAllStandardOutput());
+ _stdoutBuffer.append(QTextCodec::codecForLocale()->toUnicode(_process.readAllStandardOutput()));
int idx;
while((idx = _stdoutBuffer.indexOf('\n')) >= 0) {
emit stdout(_stdoutBuffer.left(idx));
}
void ExecWrapper::processReadStderr() {
- _stderrBuffer.append(_process.readAllStandardError());
+ _stderrBuffer.append(QTextCodec::codecForLocale()->toUnicode(_process.readAllStandardError()));
int idx;
while((idx = _stderrBuffer.indexOf('\n')) >= 0) {
emit stderr(_stderrBuffer.left(idx));