git: ce16fa339263 - main - deve/py-xmltodict: fix build with py36 by always open file as utf-8 encoded
Dima Panov
fluffy at FreeBSD.org
Wed May 12 09:05:33 UTC 2021
The branch main has been updated by fluffy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ce16fa339263309c4baf66317e6f9ac802a71e21
commit ce16fa339263309c4baf66317e6f9ac802a71e21
Author: Dima Panov <fluffy at FreeBSD.org>
AuthorDate: 2021-05-12 08:59:35 +0000
Commit: Dima Panov <fluffy at FreeBSD.org>
CommitDate: 2021-05-12 08:59:35 +0000
deve/py-xmltodict: fix build with py36 by always open file as utf-8 encoded
This fix the 'UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2587: ordinal not in range(128)'
Obtained from: https://github.com/martinblech/xmltodict/pull/246
Approved by: portmgr blanket (trivial build fix)
---
devel/py-xmltodict/files/patch-setup.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/devel/py-xmltodict/files/patch-setup.py b/devel/py-xmltodict/files/patch-setup.py
new file mode 100644
index 000000000000..416bb1f917c4
--- /dev/null
+++ b/devel/py-xmltodict/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig 2019-02-11 06:36:33 UTC
++++ setup.py
+@@ -8,8 +8,8 @@ except ImportError:
+
+ import xmltodict
+
+-with open('README.md') as f:
+- long_description = f.read()
++with open('README.md', 'rb') as f:
++ long_description = f.read().decode('utf-8')
+
+
+ setup(name='xmltodict',
More information about the dev-commits-ports-all
mailing list