Commit 0660830b authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't mix up stdout and stderr codec states

this is rather theoretical, but anyway ...
parent 71f2b50e
......@@ -99,6 +99,7 @@ private:
#else
QTextCodec *m_outputCodec;
QTextCodec::ConverterState m_outputCodecState;
QTextCodec::ConverterState m_errorCodecState;
#endif
};
......
......@@ -148,7 +148,7 @@ void ApplicationLauncher::readStandardError()
{
QByteArray data = m_guiProcess->readAllStandardError();
emit appendOutput(m_outputCodec->toUnicode(
data.constData(), data.length(), &m_outputCodecState),
data.constData(), data.length(), &m_errorCodecState),
true);
}
......
Markdown is supported
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