summaryrefslogtreecommitdiff
path: root/debian/patches/fix-unicodeencode-error
diff options
context:
space:
mode:
authorBen Carrillo <ben@futeisha.org>2013-02-12 05:16:41 +0900
committerBen Carrillo <ben@futeisha.org>2013-02-12 05:16:41 +0900
commite258596fbb3ed2d861cd7af7f9d59de5061f46f6 (patch)
tree05e554af6592d781948b91e7c5671a0e15257141 /debian/patches/fix-unicodeencode-error
parentae6f81b0dda76477af59da7ba1569786d67fcac1 (diff)
patch unicode and failing tests on chroot
Diffstat (limited to 'debian/patches/fix-unicodeencode-error')
-rw-r--r--debian/patches/fix-unicodeencode-error19
1 files changed, 0 insertions, 19 deletions
diff --git a/debian/patches/fix-unicodeencode-error b/debian/patches/fix-unicodeencode-error
deleted file mode 100644
index 821ceb9..0000000
--- a/debian/patches/fix-unicodeencode-error
+++ /dev/null
@@ -1,19 +0,0 @@
-Description: fix for _format arg function raising UnicodeDecodeError if DEFAULT_ENCODING cannot encode unicode characters
-Author: Ben Carrillo <ben@futeisha.org>
-Bug: XXX
-Forwarded: yes
---- a/sh.py
-+++ b/sh.py
-@@ -561,7 +561,11 @@
- # if the argument is already unicode, or a number or whatever,
- # this first call will fail.
- try: arg = unicode(arg, DEFAULT_ENCODING).encode(DEFAULT_ENCODING)
-- except TypeError: arg = unicode(arg).encode(DEFAULT_ENCODING)
-+ except TypeError:
-+ try:
-+ arg = unicode(arg).encode(DEFAULT_ENCODING)
-+ except UnicodeEncodeError:
-+ arg = unicode(arg).encode('utf-8')
- return arg
-
-