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

Make fd/file_chunk_consumer respect decode_errors #628

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

felixonmars
Copy link
Contributor

This fixes the example I provided at
#556 (comment) by making fd/file_chunk_consumer respect decode_errors just like the other consumers.

This fixes the example I provided at
amoffat#556 (comment)
by making fd/file_chunk_consumer respect decode_errors just like the
other consumers.
@ecederstrand
Copy link
Collaborator

Thanks for this! It looks good.

It would be great if we can get some test coverage of this. There's a test_decode_error_handling test case that can be added to.

Also added some latin-1 encoded bytes to make it always invalid for
sys.stdout too.
@felixonmars
Copy link
Contributor Author

I have adjusted the test case to correctly cover this.

@ecederstrand ecederstrand merged commit dd0318f into amoffat:develop Oct 24, 2022
@ecederstrand
Copy link
Collaborator

Thanks for the contribution!

@felixonmars felixonmars deleted the decode_errors branch October 24, 2022 09:32
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.

2 participants