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

If encoding is set on ErlangTermDecoder, decode BINARY_EXT #23

Merged
merged 2 commits into from Oct 2, 2019

Conversation

fozzle
Copy link
Member

@fozzle fozzle commented Oct 1, 2019

I think I need to commit the .cpp file to I just need to figure out how to build it correctly 🙃

@fozzle fozzle requested a review from jhgg October 1, 2019 01:19
try:
rv = rv.decode(self.encoding)
except UnicodeError:
pass
Copy link
Member

Choose a reason for hiding this comment

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

There’s merit in throwing here rather than silently failing.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure! wdyt about throwing in the STRING_EXT handler as well? It's not clear to me why that would silently continue while this would throw if the decoder is set to an encoding

@fozzle fozzle requested a review from jhgg October 2, 2019 01:14
@jixwanwang jixwanwang merged commit 27cd243 into master Oct 2, 2019
@jixwanwang jixwanwang deleted the bugfix/encoding-for-binary branch October 2, 2019 19:40
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

3 participants