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

Add an encoding parameter to parse_file #486

Merged
merged 1 commit into from Jan 7, 2023

Conversation

jordr
Copy link
Contributor

@jordr jordr commented Jan 5, 2023

We may need to process files written on/output by compilers on a system with a different locale.getencoding(), which is the default of open().

This patch exposes the encoding optional parameter of open to the parse_file API.

Copy link
Owner

@eliben eliben left a comment

Choose a reason for hiding this comment

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

Thanks. Please rebase on master to ensure tests are passing

@eliben eliben merged commit 5382e31 into eliben:master Jan 7, 2023
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.

None yet

2 participants