From ab80f512a043e58495179aa702ad11b80c00a0c0 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 17 Sep 2015 10:10:40 +0300 Subject: [PATCH] VCS: Fix encoding for editor-related commands For example Git Log. Change-Id: I1d838f86dc70f000e66443eece60adc07310c8b8 Reviewed-by: Friedemann Kleint Reviewed-by: Tobias Hunger --- src/plugins/vcsbase/vcsbaseclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index 3a0256e5f3f..e1409025663 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -224,6 +224,8 @@ VcsCommand *VcsBaseClientImpl::vcsExec(const QString &workingDirectory, const QS useOutputToWindow ? VcsWindowOutputBind : NoOutputBind); command->setCookie(cookie); command->addFlags(additionalFlags); + if (editor) + command->setCodec(editor->codec()); enqueueJob(command, arguments); return command; }