Plugins/VcsPlugins/vcsMercurial/HgDialog.py

changeset 3302
e92f0dd51979
parent 3290
dbb53746813f
child 3310
a2032ed66aec
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sun Feb 23 15:24:28 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sun Feb 23 19:20:43 2014 +0100
@@ -45,6 +45,7 @@
         self.username = ''
         self.password = ''
         self.__hgClient = hg.getClient()
+        self.vcs = hg
         
         self.outputGroup.setTitle(text)
         
@@ -198,7 +199,7 @@
         """
         if self.proc is not None:
             s = str(self.proc.readAllStandardOutput(),
-                    Preferences.getSystem("IOEncoding"),
+                    self.vcs.getEncoding(),
                     'replace')
             self.__showOutput(s)
     
@@ -229,7 +230,7 @@
         """
         if self.proc is not None:
             s = str(self.proc.readAllStandardError(),
-                    Preferences.getSystem("IOEncoding"),
+                    self.vcs.getEncoding(),
                     'replace')
             self.__showError(s)
     

eric ide

mercurial