diff options
author | Mihai Borobocea <MihaiBorobocea@gmail.com> | 2014-07-29 16:46:53 -0700 |
---|---|---|
committer | Mihai Borobocea <MihaiBorobocea@gmail.com> | 2014-07-29 16:46:53 -0700 |
commit | 1b759b802dbcddbd1a679bd451ebb73c94d99c50 (patch) | |
tree | 4588964889cafd31e5a8ee06d475d80d79829d09 /CONTRIBUTORS | |
parent | e38ec9cd7d60f01f2070bbada27d06ae00f65aef (diff) | |
download | go-1b759b802dbcddbd1a679bd451ebb73c94d99c50.tar.gz |
fmt: measure width in runes not bytes with %c and %q for ints
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 issue 8275.
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://codereview.appspot.com/104320043
Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'CONTRIBUTORS')
0 files changed, 0 insertions, 0 deletions