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

Show error messages for UTF decoding issues #7093

Merged
merged 5 commits into from
Sep 15, 2020

Conversation

clementetb
Copy link
Collaborator

@clementetb clementetb commented Sep 10, 2020

Show a more descriptive message for UTF encoding exceptions

This PR rebases the changes from #7091 into releases.

Error descriptions are extracted from the comments in utf8.hpp : to_utf8()

closes #7081

@clementetb clementetb self-assigned this Sep 10, 2020
Copy link
Contributor

@rorbech rorbech left a comment

Choose a reason for hiding this comment

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

Looks good.

Don't know the convention, but guess it would be ok for me to rebase original PR to new branch to allow keeping the history when there is no other collaborators.

@@ -0,0 +1,109 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe append Test to the file name to make it stand our that it contains tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, I renamed the class

@cmelchior cmelchior merged commit 9af9d55 into releases Sep 15, 2020
@cmelchior cmelchior deleted the ct/descriptive-utf-errors branch September 15, 2020 10:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants