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

rust: ensure encoded/decoded strings are ASCII #146

Merged
merged 1 commit into from
May 21, 2020

Conversation

tony-iqlusion
Copy link
Member

This is a stopgap until the issue of Unicode normalization can be properly addressed (e.g. should we check strings are NFC or NFD?)

Furthermore, the unicode-normalization crate doesn't support no_std environments (sans liballoc yet):

unicode-rs/unicode-normalization#58

Ensuring all strings are ASCII, while perhaps overly restrictive for now, will ensure all documents produced today are canonical in a way that's forward compatible with canonical Unicode.

This is a stopgap until the issue of Unicode normalization can be
properly addressed (e.g. should we check strings are NFC or NFD?)

Furthermore, the `unicode-normalization` crate doesn't support `no_std`
environments (sans liballoc yet):

unicode-rs/unicode-normalization#58

Ensuring all strings are ASCII, while perhaps overly restrictive for
now, will ensure all documents produced today are canonical in a way
that's forward compatible with canonical Unicode.
@tony-iqlusion tony-iqlusion merged commit 544b46e into develop May 21, 2020
@tony-iqlusion tony-iqlusion deleted the ensure-strings-are-ascii branch May 21, 2020 17:38
@tony-iqlusion tony-iqlusion mentioned this pull request May 21, 2020
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.

1 participant