Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 163657 Details for
Bug 235165
layman-1.2.0-r1, TR locale error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
layman-encoding.patch
layman-encoding.patch (text/plain), 1.91 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2008-08-23 16:57:15 UTC
(
hide
)
Description:
layman-encoding.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2008-08-23 16:57:15 UTC
Size:
1.91 KB
patch
obsolete
>--- layman/action.py >+++ layman/action.py >@@ -96,7 +96,8 @@ > self.selection = self.db.overlays.keys() > > enc = sys.getfilesystemencoding() >- self.selection = [i.decode(enc) for i in self.selection] >+ if enc: >+ self.selection = [i.decode(enc) for i in self.selection] > > def run(self): > '''Synchronize the overlays.''' >@@ -157,7 +158,8 @@ > self.selection = config['add'] > > enc = sys.getfilesystemencoding() >- self.selection = [i.decode(enc) for i in self.selection] >+ if enc: >+ self.selection = [i.decode(enc) for i in self.selection] > > if 'ALL' in self.selection: > self.selection = self.rdb.overlays.keys() >@@ -204,7 +206,8 @@ > self.selection = config['delete'] > > enc = sys.getfilesystemencoding() >- self.selection = [i.decode(enc) for i in self.selection] >+ if enc: >+ self.selection = [i.decode(enc) for i in self.selection] > > if 'ALL' in self.selection: > self.selection = self.db.overlays.keys() >@@ -281,7 +284,8 @@ > self.selection = config['info'] > > enc = sys.getfilesystemencoding() >- self.selection = [i.decode(enc) for i in self.selection] >+ if enc: >+ self.selection = [i.decode(enc) for i in self.selection] > > if 'ALL' in self.selection: > self.selection = self.rdb.overlays.keys() >--- layman/overlays/overlay.py >+++ layman/overlays/overlay.py >@@ -154,8 +154,9 @@ > OUT.info('Running command "' + command + '"...', 2) > > if hasattr(sys.stdout,'encoding'): >- command = command.encode(sys.stdout.encoding or >- sys.getfilesystemencoding()) >+ enc = sys.stdout.encoding or sys.getfilesystemencoding() >+ if enc: >+ command = command.encode(enc) > > if not self.quiet: > return os.system(command)
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 235165
:
163614
|
163617
| 163657