-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
strings, bytes: Title doesn't shield against emoji #48356
Comments
I don't see how this can be fixed without making a backwards-incompatible change for That being said, this seems similar to #34994, which states that Unicode punctuation should be taken into account. More generally, if we treated any rune that's not alphanumeric as a separator, this could be fixed: https://play.golang.org/p/JRe3MVsgJ_G. /cc @ianlancetaylor @mpvl |
We already have a comment on |
Given how problematic the function is, and how |
I would support deprecating them. |
Change https://golang.org/cl/349790 mentions this issue: |
Title has been deprecated |
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?
playground
What did you expect to see?
☺☻☹Hello
What did you see instead?
☺☻☹hello
The text was updated successfully, but these errors were encountered: