-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
fmt: width is measured in bytes not Unicode codepoints when using %c and %q for runes #8275
Labels
Milestone
Comments
I've submitted my progress at https://golang.org/cl/104320043 |
CL https://golang.org/cl/104320043 mentions this issue. |
This issue was closed by revision bfdeb57. Status changed to Fixed. |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
This is meant to share my progress on Issue 8275, if it's useful to you. I'm not familiar with the formatter's internals, so this change is likely naive. Change these calls to measure width in runes not bytes: fmt.Printf("(%5q)\n", '§') fmt.Printf("(%3c)\n", '§') Fixes golang#8275. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/104320043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 9, 2018
This is meant to share my progress on Issue 8275, if it's useful to you. I'm not familiar with the formatter's internals, so this change is likely naive. Change these calls to measure width in runes not bytes: fmt.Printf("(%5q)\n", '§') fmt.Printf("(%3c)\n", '§') Fixes golang#8275. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/104320043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by MihaiBorobocea:
The text was updated successfully, but these errors were encountered: