diff -r 734353e7d679 -r e92f0dd51979 Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py --- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Sun Feb 23 15:24:28 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Sun Feb 23 19:20:43 2014 +0100 @@ -114,8 +114,7 @@ port = self.__portSpin.value() style = self.__styleCombo.currentText() - args = [] - args.append("serve") + args = self.vcs.initCommand("serve") args.append("-v") args.append("--port") args.append(str(port)) @@ -193,8 +192,7 @@ """ if self.process is not None: s = str(self.process.readAllStandardOutput(), - Preferences.getSystem("IOEncoding"), - 'replace') + self.vcs.getEncoding(), 'replace') self.__appendText(s, False) def __readStderr(self): @@ -205,8 +203,7 @@ """ if self.process is not None: s = str(self.process.readAllStandardError(), - Preferences.getSystem("IOEncoding"), - 'replace') + self.vcs.getEncoding(), 'replace') self.__appendText(s, True) def __appendText(self, txt, error=False):