diff options
author | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-01-29 17:38:34 -0300 |
---|---|---|
committer | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-01-29 17:39:10 -0300 |
commit | b3653663ad6a13f80a4928e46e2afcee00f604ce (patch) | |
tree | 91ae43cdbc89e48d15e4281edad8a0084daf802b /src | |
parent | 4aa6db803febef30308f81e168a4d49146ebc8e4 (diff) | |
download | svn2git-b3653663ad6a13f80a4928e46e2afcee00f604ce.tar svn2git-b3653663ad6a13f80a4928e46e2afcee00f604ce.tar.gz svn2git-b3653663ad6a13f80a4928e46e2afcee00f604ce.tar.bz2 svn2git-b3653663ad6a13f80a4928e46e2afcee00f604ce.tar.xz svn2git-b3653663ad6a13f80a4928e46e2afcee00f604ce.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |