Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 360172 Details for
Bug 438240
net-irc/irker - several issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/0002-Fixed-utf-8-handling-in-metadata.patch
0002-Fixed-utf-8-handling-in-metadata.patch (text/plain), 1.02 KB, created by
Bertrand Jacquin
on 2013-10-05 17:35:52 UTC
(
hide
)
Description:
files/0002-Fixed-utf-8-handling-in-metadata.patch
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2013-10-05 17:35:52 UTC
Size:
1.02 KB
patch
obsolete
>From 5aaf87249adcc82cde55afc0975b5ef7f450aaa4 Mon Sep 17 00:00:00 2001 >From: Tom Hacohen <tom@stosb.com> >Date: Tue, 24 Sep 2013 15:55:22 +0100 >Subject: [PATCH 1/2] Fixed utf-8 handling in metadata. > >Having utf-8 in the commit metada (e.g author, commit message, files) >triggers a decoding error: >"UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 42: >ordinal not in range(128)" >This is because the __unicode__ method of the Commit class, doesn't >actually return an object of type 'unicode' although it should. >--- > irkerhook.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/irkerhook.py b/irkerhook.py >index 4b243a2..b4a4164 100755 >--- a/irkerhook.py >+++ b/irkerhook.py >@@ -88,7 +88,7 @@ class Commit: > self.url = webview > except IOError: > self.url = "" >- return self.template % self.__dict__ >+ return unicode(self.template % self.__dict__, "utf-8") > > class GenericExtractor: > "Generic class for encapsulating data from a VCS." >-- >1.8.1.5 >
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 438240
:
359018
|
359020
|
359022
|
359024
|
360158
|
360160
|
360164
|
360166
|
360168
|
360170
| 360172 |
360174
|
360176
|
360178