forked from qt-creator/qt-creator
Git: Parse for-each-ref output as UTF-8
Adding a branch with non-ascii chars then refreshing the branch list on Windows invalidates the branch name. Change-Id: I59d3e092c66fdcc7cea38a8451de6b5e42cd5de0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ded24c3997
commit
7a7690f0ec
@@ -1952,7 +1952,7 @@ bool GitClient::synchronousForEachRefCmd(const QString &workingDirectory, QStrin
|
||||
QByteArray errorText;
|
||||
const bool rc = fullySynchronousGit(workingDirectory, args, &outputText, &errorText,
|
||||
VcsBasePlugin::SuppressCommandLogging);
|
||||
*output = commandOutputFromLocal8Bit(outputText);
|
||||
*output = Utils::SynchronousProcess::normalizeNewlines(QString::fromUtf8(outputText));
|
||||
if (!rc)
|
||||
msgCannotRun(args, workingDirectory, errorText, errorMessage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user