Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding generalizations #110

Merged
merged 8 commits into from
Sep 1, 2022
Merged

Encoding generalizations #110

merged 8 commits into from
Sep 1, 2022

Conversation

BramVanroy
Copy link
Contributor

@BramVanroy BramVanroy commented Aug 30, 2022

Currently, some issues may be experienced by Windows users because of encoding issues. The reason is that Windows unfortunately still relies on cp1252 rather than utf-8. This PR explicitly sets utf-8 where applicable (set-up files) and allows user-defined encoding elsewhere (in the codec module as well as the command line script).

Tests completed successfully.

Closes #109

Copy link
Owner

@goodmami goodmami left a comment

Choose a reason for hiding this comment

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

Thanks! This looks mostly great, but I have a few requests (see comments in code).

penman/__main__.py Outdated Show resolved Hide resolved
penman/__main__.py Outdated Show resolved Hide resolved
Copy link
Owner

@goodmami goodmami left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@goodmami goodmami merged commit d6432fe into goodmami:main Sep 1, 2022
@goodmami
Copy link
Owner

goodmami commented Sep 1, 2022

@BramVanroy changes are now published to PyPI in version 1.2.2. Cheers

@BramVanroy
Copy link
Contributor Author

Thanks a lot for the quick responses and fast iteration! Also really appreciate the quick push to PyPi so I can readily start using it. Awesome!

@BramVanroy BramVanroy deleted the windows-compat branch September 1, 2022 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cross-platform/encoding support for IO operations
2 participants