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

Dart utf8 #6

Merged
merged 2 commits into from
May 16, 2022
Merged

Dart utf8 #6

merged 2 commits into from
May 16, 2022

Conversation

jerel
Copy link
Contributor

@jerel jerel commented May 13, 2022

Summary

Initial implementation of the Dart runtime handled string ser/de with [utf-16] code units. This had the appearance of working as long as the given character was < 128. This PR switches to utf-8 encode/decode to fix this bug.

Test Plan

A test is included with Japanese text which causes the current implementation to fail.

@jerel jerel requested a review from ma2bd as a code owner May 13, 2022 17:14
@ma2bd
Copy link
Contributor

ma2bd commented May 13, 2022

Thanks for the fix.

Any thoughts about finishing the work on adding Rust-driven tests and support for maps? novifinancial/serde-reflection#120
I believe the standard Rust-driven tests would have caught the issue.

@ma2bd ma2bd merged commit 82641e1 into zefchain:main May 16, 2022
@jerel
Copy link
Contributor Author

jerel commented May 19, 2022

Thanks for the fix.

Any thoughts about finishing the work on adding Rust-driven tests and support for maps? novifinancial/serde-reflection#120 I believe the standard Rust-driven tests would have caught the issue.

Hey thanks for the merge and release.

There's a chance that I'll have time to contribute more tests for the Dart variant but at the moment I'm scheduled full. I'll keep it in mind.

@temeddix
Copy link

Does anyone mind sharing the status of Dart support in 2024?

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.

3 participants