Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 228147 Details for
Bug 315709
ebuild script: Unicode unequal comparison failed to convert both arguments to Unicode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Alternative approach patch (converting PWD to unicode format)
portage-315709-convert-PWD-to-unicode.diff (text/plain), 1.12 KB, created by
Michał Górny
on 2010-04-17 13:10:47 UTC
(
hide
)
Description:
Alternative approach patch (converting PWD to unicode format)
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2010-04-17 13:10:47 UTC
Size:
1.12 KB
patch
obsolete
>commit 62b2fa550853e1c633311d01f0ac0e233c3de421 >Author: MichaŠGórny <gentoo@mgorny.alt.pl> >Date: Sat Apr 17 14:57:12 2010 +0200 > > Convert os.environ['PWD'] to unicode format to make it suitable > for comparison with mycwd. > >diff --git a/bin/ebuild b/bin/ebuild >index 3eaea94..fd87615 100755 >--- a/bin/ebuild >+++ b/bin/ebuild >@@ -116,9 +116,10 @@ if not os.path.isabs(ebuild): > # Try to get the non-canonical path from the PWD evironment variable, since > # the canonical path returned from os.getcwd() may may be unusable in > # cases where the directory stucture is built from symlinks. >- if "PWD" in os.environ and os.environ["PWD"] != mycwd and \ >- os.path.realpath(os.environ["PWD"]) == mycwd: >- mycwd = portage.normalize_path(os.environ["PWD"]) >+ if "PWD" in os.environ: >+ mypwd = portage._unicode_decode(os.environ["PWD"], encoding=portage._encodings['fs']) >+ if mypwd != mycwd and os.path.realpath(mypwd) == mycwd: >+ mycwd = portage.normalize_path(os.environ["PWD"]) > ebuild = os.path.join(mycwd, ebuild) > ebuild = portage.normalize_path(ebuild) > # portdbapi uses the canonical path for the base of the portage tree, but >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 315709
:
228113
|
228145
| 228147