Commit f5afaac0 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VCS: Use outputCodec for stdErr



Change-Id: I0e9b4b1aa48bfab8ff84d2559d6971ca9fdde5b6
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 07d486ce
...@@ -863,14 +863,15 @@ static SynchronousProcessResponse runVcsFullySynchronously(const QString &workin ...@@ -863,14 +863,15 @@ static SynchronousProcessResponse runVcsFullySynchronously(const QString &workin
&stdOut, &stdErr, true); &stdOut, &stdErr, true);
if (!stdErr.isEmpty()) { if (!stdErr.isEmpty()) {
response.stdErr = QString::fromLocal8Bit(stdErr).remove(QLatin1Char('\r')); response.stdErr = (outputCodec ? outputCodec->toUnicode(stdErr) : QString::fromLocal8Bit(stdErr));
response.stdErr.remove(QLatin1Char('\r'));
if (!(flags & VcsBasePlugin::SuppressStdErrInLogWindow)) if (!(flags & VcsBasePlugin::SuppressStdErrInLogWindow))
outputWindow->append(response.stdErr); outputWindow->append(response.stdErr);
} }
if (!stdOut.isEmpty()) { if (!stdOut.isEmpty()) {
response.stdOut = (outputCodec ? outputCodec->toUnicode(stdOut) : QString::fromLocal8Bit(stdOut)) response.stdOut = (outputCodec ? outputCodec->toUnicode(stdOut) : QString::fromLocal8Bit(stdOut));
.remove(QLatin1Char('\r')); response.stdOut.remove(QLatin1Char('\r'));
if (flags & VcsBasePlugin::ShowStdOutInLogWindow) { if (flags & VcsBasePlugin::ShowStdOutInLogWindow) {
if (flags & VcsBasePlugin::SilentOutput) if (flags & VcsBasePlugin::SilentOutput)
outputWindow->appendSilently(response.stdOut); outputWindow->appendSilently(response.stdOut);
......
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