convert: manually set encoding to UTF-8
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 17 Jul 2007 09:08:29 -0300
changeset 4895 fa6c9381d053
parent 4894 be5dc5e3ab2d
child 4896 ee04732fe61d
child 4928 2a7d30c97f89
convert: manually set encoding to UTF-8 Right now the backends assume we're working in UTF-8 and there's no good way to ignore the encoding when adding revisions.
hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	Tue Jul 17 09:08:29 2007 -0300
+++ b/hgext/convert/__init__.py	Tue Jul 17 09:08:29 2007 -0300
@@ -269,6 +269,8 @@
     srcauthor=whatever string you want
     '''
 
+    util._encoding = 'UTF-8'
+
     srcc = converter(ui, src)
     if not hasattr(srcc, "getcommit"):
         raise util.Abort("%s: can't read from this repo type" % src)