archrelease: copy trunk to extra-x86_64
[arch-packages.git] / hplip / trunk / 0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
blobf3a8c1732b0b4867194d4708a395e5b48b277167
1 From 04b5a1ddac1dd90c5a392f23aaf7df42eae32918 Mon Sep 17 00:00:00 2001
2 From: Gaurav Sood <gaurav-sood@invalid-email.launchpad.net>
3 Date: Thu, 4 May 2017 18:32:08 +0200
4 Subject: Fix handling of unicode filenames in sixext.py
6 LP: #1480152
7 Closes: #861731
8 ---
9 base/sixext.py | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
12 diff --git a/base/sixext.py b/base/sixext.py
13 index 0bf4fc4f4..311bf72c6 100644
14 --- a/base/sixext.py
15 +++ b/base/sixext.py
16 @@ -110,11 +110,11 @@ if PY3:
19 def to_string_utf8(s):
20 - return s.decode("utf-8")
21 + return s.decode("utf-8", 'ignore')
24 def to_string_latin(s):
25 - return s.decode("latin-1")
26 + return s.decode("latin-1", 'ignore')
29 def to_unicode(s, enc=None):