From f01d7a8ca158ec60df76a3e8ae5b80ac3f62429e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 10 Sep 2012 13:33:35 -0700 Subject: [PATCH] repoman: ElementTree.parse: encode unicode path This fixes another issue like bug #310789. --- bin/repoman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.26.2