summaryrefslogtreecommitdiff
path: root/libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-09-04 14:04:25 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-09-04 14:04:25 -0500
commit86730d095a36076d7d785f51b0fb65d05c097d0b (patch)
tree95155a52743b9d1b68494b3a81141cf9732fa737 /libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
parentbbf64929616d49e2d9396ed9144d3b4fe7c3be65 (diff)
downloadabslibre-86730d095a36076d7d785f51b0fb65d05c097d0b.tar.gz
abslibre-86730d095a36076d7d785f51b0fb65d05c097d0b.tar.bz2
abslibre-86730d095a36076d7d785f51b0fb65d05c097d0b.zip
hplip-1:3.18.6-1.parabola1: updating version
Diffstat (limited to 'libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch')
-rw-r--r--libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch b/libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
new file mode 100644
index 000000000..f3a8c1732
--- /dev/null
+++ b/libre/hplip/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
@@ -0,0 +1,29 @@
+From 04b5a1ddac1dd90c5a392f23aaf7df42eae32918 Mon Sep 17 00:00:00 2001
+From: Gaurav Sood <gaurav-sood@invalid-email.launchpad.net>
+Date: Thu, 4 May 2017 18:32:08 +0200
+Subject: Fix handling of unicode filenames in sixext.py
+
+LP: #1480152
+Closes: #861731
+---
+ base/sixext.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/base/sixext.py b/base/sixext.py
+index 0bf4fc4f4..311bf72c6 100644
+--- a/base/sixext.py
++++ b/base/sixext.py
+@@ -110,11 +110,11 @@ if PY3:
+
+
+ def to_string_utf8(s):
+- return s.decode("utf-8")
++ return s.decode("utf-8", 'ignore')
+
+
+ def to_string_latin(s):
+- return s.decode("latin-1")
++ return s.decode("latin-1", 'ignore')
+
+
+ def to_unicode(s, enc=None):