diff -r 53c1d1f9ec86 -r 05aab5164d64 Plugins/VcsPlugins/vcsMercurial/HgClient.py --- a/Plugins/VcsPlugins/vcsMercurial/HgClient.py Mon Jul 22 20:08:29 2013 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgClient.py Tue Jul 23 18:34:55 2013 +0200 @@ -10,10 +10,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 @@ -73,11 +74,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)