From 05f6fb34ee79ee8112ef549e93f0a138be0e2abf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 15:40:13 +0000 Subject: automatic import of hplip --- hplip-unicodeerror.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hplip-unicodeerror.patch (limited to 'hplip-unicodeerror.patch') diff --git a/hplip-unicodeerror.patch b/hplip-unicodeerror.patch new file mode 100644 index 0000000..f98c7a3 --- /dev/null +++ b/hplip-unicodeerror.patch @@ -0,0 +1,18 @@ +diff --git a/base/sixext.py b/base/sixext.py +index 0bf4fc4..311bf72 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): -- cgit v1.2.3