Date: Wed, 12 May 2021 09:05:33 GMT From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ce16fa339263 - main - deve/py-xmltodict: fix build with py36 by always open file as utf-8 encoded Message-ID: <202105120905.14C95Xm8092718@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce16fa339263309c4baf66317e6f9ac802a71e21 commit ce16fa339263309c4baf66317e6f9ac802a71e21 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2021-05-12 08:59:35 +0000 Commit: Dima Panov <fluffy@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',
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105120905.14C95Xm8092718>