From 6575476d4758e111c876c3900055594895203b42 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 14 Jun 2022 14:52:26 +0200 Subject: [PATCH] rclpdf.py: opening attachment: need to decode the utf-8 ipath --- src/filters/rclpdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters/rclpdf.py b/src/filters/rclpdf.py index 0feaf741..0b5d6837 100755 --- a/src/filters/rclpdf.py +++ b/src/filters/rclpdf.py @@ -516,11 +516,11 @@ class PDFExtractor: def extractone(self, ipath): - #self.em.rclog("extractone: [%s]" % ipath) + self.em.rclog("extractone: [%s]" % ipath) if not self.attextractdone: if not self.extractAttach(): return (False, "", "", rclexecm.RclExecM.eofnow) - path = os.path.join(tmpdir.getpath(), ipath) + path = os.path.join(tmpdir.getpath(), ipath.decode('utf-8')) if os.path.isfile(path): f = open(path, "rb") docdata = f.read();