On s'assure que le changelog est bien de l'UTF-8 avant de parser le XML

darcs-hash:20071217203439-61eff-2695a205f385a90a13d9dac9b9ae17d16a68a365.gz
This commit is contained in:
Stephane Glondu 2007-12-17 21:34:39 +01:00
parent 54c3a262fe
commit 25a0e2fe65

View file

@ -79,6 +79,7 @@ def get_patch_properties(hash):
else:
match_cmd = "--last 1"
(status, changelog) = darcs("changes %s --xml-output" % match_cmd)
changelog = to_utf8(changelog)
if status != 0 or changelog == "":
return None
prop = etree.XML(changelog)