From f34275cff05668492a134a69cacac16f799c2493 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 28 Dec 2007 19:59:06 +0100 Subject: [PATCH] Fix the double UTF-8 encoding of the author name. In hindsight I maybe shouldn't have used QTextStream. --- src/repository.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repository.cpp b/src/repository.cpp index aef71a1..ab4c1bf 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -138,9 +138,9 @@ void Repository::startFastImport() outputFile.replace('/', '_'); outputFile.prepend("log-"); fastImport.setStandardOutputFile(outputFile, QIODevice::Append); + fastImport.setProcessChannelMode(QProcess::MergedChannels); #ifndef DRY_RUN - fastImport.setProcessChannelMode(QProcess::ForwardedChannels); fastImport.start("git-fast-import", QStringList()); #else fastImport.start("/bin/cat", QStringList()); @@ -206,7 +206,7 @@ void Repository::Transaction::commit() QTextStream s(&repository->fastImport); s << "commit " << branchRef << endl; s << "mark :" << revnum << endl; - s << "committer " << author << ' ' << datetime << " -0000" << endl; + s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " -0000" << endl; Branch &br = repository->branches[branch]; if (!br.created) { -- 2.45.0