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: IsLetter check char 231 have error #60863

Closed
epowsal opened this issue Jun 18, 2023 · 2 comments
Closed

unicode: IsLetter check char 231 have error #60863

epowsal opened this issue Jun 18, 2023 · 2 comments

Comments

@epowsal
Copy link

epowsal commented Jun 18, 2023

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

$ go version
1.20.3

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

windows 11 intel 64

char 231 is half chinese char, it is not a letter.
unicode/utf8 package should add IsEnLetter and IsUtf8Letter. This cause my program too many error.

@dmitshur dmitshur changed the title unicode IsLetter check char 231 have error unicode: IsLetter check char 231 have error Jun 18, 2023
@epowsal
Copy link
Author

epowsal commented Jun 19, 2023

atleast should add IsEnLetter or IsUtf8Letter. this cause my program many error.

@ianlancetaylor
Copy link
Contributor

Whether a Unicode code point is a letter or not is defined by the Unicode standard. I don't know precisely what you mean by character 231. The code point with the value decimal 231 is ç, which is a letter. Closing because I think the function is behaving as documented and intended. Please comment if you disagree.

I don't know precisely what you mean by IsEnLetter or IsUtf8Letter.

@ianlancetaylor ianlancetaylor closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
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