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

Implement ascii codec in Rust #3118

Merged
merged 2 commits into from
Sep 23, 2021
Merged

Implement ascii codec in Rust #3118

merged 2 commits into from
Sep 23, 2021

Conversation

coolreader18
Copy link
Member

I started on this at the beginning of June, so I figured I should finish it and get it in. A large part of the refactoring is just deduplicating decoding logic between utf8 and ascii, since in both the valid subset can just be push_str()'d, and the rest passed to the error handler. The only difference is finding the invalid bytes, if any, and figuring out what the error is.

@coolreader18
Copy link
Member Author

Also sorry @fanninpm, I know you have #3046; that can be merged first if it's ready and I can rebase and resolve conflicts from there.

@fanninpm
Copy link
Contributor

that can be merged first if it's ready and I can rebase and resolve conflicts from there.

Actually, I would like to make use of the error-handling code you have here. This can go first so I can rebase #3046 on top of your work.

common/src/encodings.rs Show resolved Hide resolved
vm/src/stdlib/codecs.rs Show resolved Hide resolved
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
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