hgext/convert/gnuarch.py
branchstable
changeset 11987 3145951e50fe
parent 11986 d2796a3cb816
child 12344 b6173aee4a47
--- a/hgext/convert/gnuarch.py	Wed Aug 18 10:53:50 2010 -0400
+++ b/hgext/convert/gnuarch.py	Wed Aug 18 10:53:52 2010 -0400
@@ -8,8 +8,8 @@
 
 from common import NoRepo, commandline, commit, converter_source
 from mercurial.i18n import _
-from mercurial import util
-import os, shutil, tempfile, stat, locale
+from mercurial import encoding, util
+import os, shutil, tempfile, stat
 from email.Parser import Parser
 
 class gnuarch_source(converter_source, commandline):
@@ -55,7 +55,7 @@
         self.parents = {}
         self.tags = {}
         self.catlogparser = Parser()
-        self.encoding = locale.getpreferredencoding()
+        self.encoding = encoding.encoding
         self.archives = []
 
     def before(self):