summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-05-25 23:23:37 +0000
committerZac Medico <zmedico@gentoo.org>2009-05-25 23:23:37 +0000
commit0f99d13c83d73ec4e9a1307551ea6d341094abde (patch)
treecfa4ee24ddd1b21b6923da0ec963f88563141eed /app-text/calibre/files
parentFix use of broken intltool. (diff)
downloadgentoo-2-0f99d13c83d73ec4e9a1307551ea6d341094abde.tar.gz
gentoo-2-0f99d13c83d73ec4e9a1307551ea6d341094abde.tar.bz2
gentoo-2-0f99d13c83d73ec4e9a1307551ea6d341094abde.zip
25 May 2009; Zac Medico <zmedico@gentoo.org>
files/bug_270746_UnicodeEncodeError.patch, -calibre-0.5.13-r1.ebuild, +calibre-0.5.13-r2.ebuild: Bug #270746 - Update patch to solve another UnicodeDecodeError. (Portage version: 2.2_rc33_p13615/cvs/Linux i686)
Diffstat (limited to 'app-text/calibre/files')
-rw-r--r--app-text/calibre/files/bug_270746_UnicodeEncodeError.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/app-text/calibre/files/bug_270746_UnicodeEncodeError.patch b/app-text/calibre/files/bug_270746_UnicodeEncodeError.patch
index d5302fd252fc..bd5559110096 100644
--- a/app-text/calibre/files/bug_270746_UnicodeEncodeError.patch
+++ b/app-text/calibre/files/bug_270746_UnicodeEncodeError.patch
@@ -5,6 +5,6 @@
'.PP', '.B Created by '+__author__]
- return bz2.compress('\n'.join(lines))
-+ return bz2.compress(u'\n'.join(lines).encode('utf_8'))
++ return bz2.compress(u'\n'.join(isinstance(x, unicode) and x or unicode(x, 'utf_8', 'replace') for x in lines).encode('utf_8', 'replace'))