X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fexecwrapper.cpp;fp=src%2Fclient%2Fexecwrapper.cpp;h=ea63822aa9c543425e6babc288905f78db93eed0;hp=24b5c8429dd20eaf41b0e6bc9e839246f2f86498;hb=60041f44f28945a60106fc5e7131387d3babefbc;hpb=127d1fd9e75d33f1a6a4cd4d30c259b00686c4ff diff --git a/src/client/execwrapper.cpp b/src/client/execwrapper.cpp index 24b5c842..ea63822a 100644 --- a/src/client/execwrapper.cpp +++ b/src/client/execwrapper.cpp @@ -99,7 +99,7 @@ void ExecWrapper::processError(QProcess::ProcessError error) { } 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)); @@ -108,7 +108,7 @@ void ExecWrapper::processReadStdout() { } 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));