From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2E350138010 for ; Mon, 10 Sep 2012 20:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDE3021C06A; Mon, 10 Sep 2012 20:34:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9B6FB21C06A for ; Mon, 10 Sep 2012 20:34:01 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BEEB335E2E for ; Mon, 10 Sep 2012 20:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C9E86E543C for ; Mon, 10 Sep 2012 20:33:58 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1347309215.f01d7a8ca158ec60df76a3e8ae5b80ac3f62429e.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/repoman X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: f01d7a8ca158ec60df76a3e8ae5b80ac3f62429e X-VCS-Branch: master Date: Mon, 10 Sep 2012 20:33:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3f705f8f-b5c3-4444-b31e-7ca91337749f X-Archives-Hash: 4e8ed8a808b40a85f4251591dff3787f commit: f01d7a8ca158ec60df76a3e8ae5b80ac3f62429e Author: Zac Medico gentoo org> AuthorDate: Mon Sep 10 20:33:35 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Sep 10 20:33:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f01d7a8c repoman: ElementTree.parse: encode unicode path This fixes another issue like bug #310789. --- bin/repoman | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/bin/repoman b/bin/repoman index c11ec09..54a7c5b 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: