convert/gnuarch: set prefered locale for str conversions
Seems necessary, as a test on my archives goes further with this.
--- a/hgext/convert/gnuarch.py Sun Jan 04 02:36:48 2009 +0100
+++ b/hgext/convert/gnuarch.py Sun Jan 04 02:36:48 2009 +0100
@@ -3,7 +3,7 @@
from common import NoRepo, commandline, commit, converter_source
from mercurial.i18n import _
from mercurial import util
-import os, shutil, tempfile, stat
+import os, shutil, tempfile, stat, locale
from email.Parser import Parser
class gnuarch_source(converter_source, commandline):
@@ -48,6 +48,7 @@
self.tags = {}
self.modecache = {}
self.catlogparser = Parser()
+ self.locale = locale.getpreferredencoding()
def before(self):
if self.execmd == 'tla':