From: Zac Medico Date: Mon, 10 Sep 2012 20:33:35 +0000 (-0700) Subject: repoman: ElementTree.parse: encode unicode path X-Git-Tag: v2.2.0_alpha126~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f01d7a8ca158ec60df76a3e8ae5b80ac3f62429e;p=portage.git repoman: ElementTree.parse: encode unicode path This fixes another issue like bug #310789. --- diff --git a/bin/repoman b/bin/repoman index c11ec09ed..54a7c5b8e 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1665,7 +1665,8 @@ for x in effective_scanlist: # read metadata.xml into memory try: _metadata_xml = xml.etree.ElementTree.parse( - os.path.join(checkdir, "metadata.xml"), + _unicode_encode(os.path.join(checkdir, "metadata.xml"), + encoding=_encodings['fs'], errors='strict'), parser=xml.etree.ElementTree.XMLParser( target=_MetadataTreeBuilder())) except (ExpatError, SyntaxError, EnvironmentError) as e: