forked from qt-creator/qt-creator
Maemo: Filter NUL characters from rrpmbuild output.
This commit is contained in:
@@ -313,10 +313,12 @@ void MaemoPackageCreationStep::handleBuildOutput()
|
|||||||
QProcess * const buildProc = qobject_cast<QProcess *>(sender());
|
QProcess * const buildProc = qobject_cast<QProcess *>(sender());
|
||||||
if (!buildProc)
|
if (!buildProc)
|
||||||
return;
|
return;
|
||||||
const QByteArray &stdOut = buildProc->readAllStandardOutput();
|
QByteArray stdOut = buildProc->readAllStandardOutput();
|
||||||
|
stdOut.replace('\0', QByteArray()); // Output contains NUL characters.
|
||||||
if (!stdOut.isEmpty())
|
if (!stdOut.isEmpty())
|
||||||
emit addOutput(QString::fromLocal8Bit(stdOut), BuildStep::NormalOutput);
|
emit addOutput(QString::fromLocal8Bit(stdOut), BuildStep::NormalOutput);
|
||||||
const QByteArray &errorOut = buildProc->readAllStandardError();
|
QByteArray errorOut = buildProc->readAllStandardError();
|
||||||
|
errorOut.replace('\0', QByteArray());
|
||||||
if (!errorOut.isEmpty()) {
|
if (!errorOut.isEmpty()) {
|
||||||
emit addOutput(QString::fromLocal8Bit(errorOut), BuildStep::ErrorOutput);
|
emit addOutput(QString::fromLocal8Bit(errorOut), BuildStep::ErrorOutput);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user