From 823d6b4fb75c2492d6d7c12733d7b6979b0e576f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 17 Oct 2008 21:40:19 +0200 Subject: [PATCH] DarcsPatch.get_darcs_patches(): respect non-utf8 encoding Signed-off-by: Miklos Vajna --- darcs2git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/darcs2git.py b/darcs2git.py index 1b864ed..54e31ed 100755 --- a/darcs2git.py +++ b/darcs2git.py @@ -627,7 +627,8 @@ class DarcsPatch: def get_darcs_patches (darcs_repo): progress ('reading patches.') - xml_string = read_pipe ('darcs changes --xml --reverse --repo ' + darcs_repo) + xml_string = '' % options.encoding + xml_string += read_pipe ('darcs changes --xml --reverse --repo ' + darcs_repo) dom = xml.dom.minidom.parseString(xml_string) xmls = dom.documentElement.getElementsByTagName('patch') -- 2.11.4.GIT