aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perforce/perforcesubmiteditor.h
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2011-10-21 09:30:56 +0000
committerTobias Hunger <tobias.hunger@nokia.com>2011-10-21 11:42:28 +0200
commit08f97b50d71a2b16b76659b82062a3d438195990 (patch)
treee53b860e1aeb6d3604bbbf79e60c92f3bb19aa00 /src/plugins/perforce/perforcesubmiteditor.h
parent5801841130cf89917ba05df3d49c9d0eb63fdbd3 (diff)
Git: Support encoding convert of commit messages
We need read i18n.commitEncoding value, to write correct encoding of the commit file. In Windows OS, the default encoding is GBK, So we need convert to correct encoding of the commit messages. Change-Id: Id5f35745dba15da2c9ceb1266e0ea537cba7da73 Merge-request: 382 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/perforce/perforcesubmiteditor.h')
-rw-r--r--src/plugins/perforce/perforcesubmiteditor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perforce/perforcesubmiteditor.h b/src/plugins/perforce/perforcesubmiteditor.h
index 16032cf1b3..94a0db2e54 100644
--- a/src/plugins/perforce/perforcesubmiteditor.h
+++ b/src/plugins/perforce/perforcesubmiteditor.h
@@ -69,7 +69,7 @@ public:
static QString fileFromChangeLine(const QString &line);
protected:
- virtual QString fileContents() const;
+ virtual QByteArray fileContents() const;
virtual bool setFileContents(const QString &contents);
private: