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

x/text: case folding differs from ICU #47755

Closed
BrannonKing opened this issue Aug 17, 2021 · 1 comment
Closed

x/text: case folding differs from ICU #47755

BrannonKing opened this issue Aug 17, 2021 · 1 comment

Comments

@BrannonKing
Copy link

What version of Go are you using (go version)?

1.16.6

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using?

linux/amd64

What did you do?

Given this string: "Ꮖ-Ꮩ-Ꭺ-Ꮹ-Ꭼ-Ꮮ", convert it to lower case via x/text/cases.Fold().Bytes(...). This produces a valid but unexpected result (and many common fonts don't contain characters for the output).

What did you expect to see?

I expected the characters to go through unchanged. That's because x/text/cases claims to comply with Unicode version 13. ICU (I tested v63.2 and v66.1), which include Unicode 13 and below, leave the text unchanged when passed to ICU's u_strFoldCase.

@gopherbot gopherbot added this to the Unreleased milestone Aug 17, 2021
@seankhliao
Copy link
Member

Duplicate of #46101

@seankhliao seankhliao marked this as a duplicate of #46101 Aug 17, 2021
@golang golang locked and limited conversation to collaborators Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants