From b3653663ad6a13f80a4928e46e2afcee00f604ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Alvarez?= Date: Sat, 29 Jan 2011 17:38:34 -0300 Subject: Fix encoding of author names. Author names were being properly passed through fromUtf8(), but then sent to a QTextStream using the system's locale. This patch forces the text stream to always use UTF-8. --- src/repository.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/repository.cpp b/src/repository.cpp index 4aa7695..7de840f 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -637,6 +637,7 @@ void Repository::Transaction::commit() branchRef.prepend("refs/heads/"); QTextStream s(&repository->fastImport); + s.setCodec("UTF-8"); s << "commit " << branchRef << endl; s << "mark :" << QByteArray::number(mark) << endl; s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " -0000" << endl; -- cgit v1.2.1