Use _encodings['merge'] for *.la filenames.
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Jul 2010 01:03:14 +0000 (18:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Jul 2010 01:03:14 +0000 (18:03 -0700)
pym/portage/package/ebuild/doebuild.py

index 1198e53eac40111292912872ba0b71d8cc669df2..e9a29362829403f14ddf8c064c251078c212547b 100644 (file)
@@ -1622,7 +1622,7 @@ def _post_src_install_uid_fix(mysettings, out):
                                if lafilefixing and \
                                        fname.endswith(".la") and os.path.isfile(fpath):
                                        f = open(_unicode_encode(fpath,
-                                               encoding=_encodings['fs'], errors='strict'),
+                                               encoding=_encodings['merge'], errors='strict'),
                                                mode='rb')
                                        contents = f.read()
                                        f.close()
@@ -1643,7 +1643,7 @@ def _post_src_install_uid_fix(mysettings, out):
                                                        writemsg("Fixing .la files\n", fd=out)
                                                writemsg("   %s\n" % fpath[len(destdir):], fd=out)
                                                f = open(_unicode_encode(fpath,
-                                                       encoding=_encodings['fs'], errors='strict'),
+                                                       encoding=_encodings['merge'], errors='strict'),
                                                        mode='wb')
                                                f.write(new_contents)
                                                f.close()