Commit f5f29936 authored by Leo.Lei's avatar Leo.Lei
Browse files

Git: Set commit log encoding to 'UTF-8'

To solve displaying error of commit log with non-latin characters
in the commit description editor.

Change-Id: I8fd4ccdd82c0e5a286fe7d9f694b80915ef477ff
Reviewed-by: default avatarTobias Hunger <>
parent 9ef8d71e
......@@ -2964,6 +2964,11 @@ bool GitClient::getCommitData(const QString &workingDirectory,
commitData.commitEncoding = readConfigValue(workingDirectory, QLatin1String("i18n.commitEncoding"));
// Set default commit encoding to 'UTF-8', when it's not set,
// to solve displaying error of commit log with non-latin characters.
if (commitData.commitEncoding.isEmpty())
commitData.commitEncoding = QLatin1String("UTF-8");
// Get the commit template or the last commit message
switch (commitData.commitType) {
case AmendCommit: {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment