diff -r b852fe4d153a -r 1843ef6e2656 Plugins/VcsPlugins/vcsMercurial/HgClient.py --- a/Plugins/VcsPlugins/vcsMercurial/HgClient.py Mon Aug 12 19:41:53 2013 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgClient.py Mon Aug 12 22:21:53 2013 +0200 @@ -15,10 +15,11 @@ import struct import io -from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ - QCoreApplication, QThread +from PyQt4.QtCore import QProcess, QObject, QByteArray, QCoreApplication, QThread from PyQt4.QtGui import QDialog +from .HgUtilities import prepareProcess + import Preferences @@ -78,11 +79,7 @@ # connect signals self.__server.finished.connect(self.__serverFinished) - # set the encoding for the server - if self.__encoding: - env = QProcessEnvironment.systemEnvironment() - env.insert("HGENCODING", self.__encoding) - self.__server.setProcessEnvironment(env) + prepareProcess(self.__server, self.__encoding) self.__server.start('hg', self.__serverArgs) serverStarted = self.__server.waitForStarted(5000)