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

Unicode NFD is destructive #23

Open
TinoDidriksen opened this issue Feb 4, 2022 · 1 comment
Open

Unicode NFD is destructive #23

TinoDidriksen opened this issue Feb 4, 2022 · 1 comment

Comments

@TinoDidriksen
Copy link

u8string will get proper utf-8/unicode support, exceeding C++ STL. compare will check u8strings normalized to NFD.

Please consider that very carefully. Normalization is destructive. E.g. both Å (U+00C5) and (U+212B) will normalize to (U+0041 U+030A). There are lots of such destructive normalizations, but do you really want to consider them equal? I sure don't.

@rurban
Copy link
Owner

rurban commented Apr 9, 2023

Compare is done with a copy of course. See also libu8ident, which does the ident checks already

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

No branches or pull requests

2 participants