From 12858b85d18755100b340524126598180a42e8c7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 5 Aug 2009 00:17:15 +0000 Subject: Open ld.so.conf as text (unicode). svn path=/main/trunk/; revision=13915 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index eb7547c30..ca2764335 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -726,7 +726,8 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None, ldsoconf_path = os.path.join(target_root, "etc", "ld.so.conf") try: - myld = open(ldsoconf_path) + myld = codecs.open(ldsoconf_path, mode='r', + encoding='utf_8', errors='replace') myldlines=myld.readlines() myld.close() oldld=[] -- cgit v1.2.3-1-g7c22