Skip to content

read patch files as bytestring to avoid UnicodeDecodeError for patches that include funky characters#3191

Merged
zao merged 9 commits intoeasybuilders:developfrom
boegel:fix_patch_non_utf8
Feb 10, 2020
Merged

read patch files as bytestring to avoid UnicodeDecodeError for patches that include funky characters#3191
zao merged 9 commits intoeasybuilders:developfrom
boegel:fix_patch_non_utf8

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Feb 6, 2020

fixes #3190

Comment thread easybuild/tools/filetools.py Outdated
@boegel boegel force-pushed the fix_patch_non_utf8 branch from 7190ca2 to 3f369d6 Compare February 8, 2020 20:06
@zao
Copy link
Copy Markdown
Contributor

zao commented Feb 10, 2020

Regarding the Travis failure for 2.6 - the docs for str.encode say:

Changed in version 2.7: Support for keyword arguments added.

Copy link
Copy Markdown
Contributor

@zao zao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zao zao merged commit 1ad8919 into easybuilders:develop Feb 10, 2020
@boegel boegel deleted the fix_patch_non_utf8 branch February 10, 2020 16:33
@boegel boegel added the python3 Python 3 compatibility label Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix python3 Python 3 compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hard crash with UnicodeDecodeError when reading patch file that contains backtick character when using Python 3

3 participants