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
x/text/cases: incorrect case folding for Ꮭ #46101
Comments
cc @mpvl |
In rare cases case folding should map to the upper case variant indeed. Looking at https://www.unicode.org/Public/14.0.0/ucd/UnicodeData-14.0.0d10.txt and https://www.unicode.org/Public/14.0.0/ucd/CaseFolding-14.0.0d8.txt this is indeed the case. So the correct behavior indeed is to map to U+13DD and this looks like a bug. FYI: the reason why it folds to the uppercase form is to have consistent behavior with older versions of Unicode. Cherokee originally only had its uppercase letters present in Unicode and only became a bicameral script in 8.0.0. |
@mpvl , you're referencing the v14 tables on purpose? The Unicode v14 tables do have different case fold mappings than v13. It looks like x/text/cases is using Unicode v14 tables even though it claims to be Unicode version 13. That's possibly the culprit. The example in #47755 shows a few other characters that have this struggle. |
Change https://go.dev/cl/445115 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/N-Ypx8AgIgl
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: