Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1951)

Issue 104320043: code review 104320043: RFC: fmt: measure width in runes not bytes with %c and ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by mb
Modified:
9 years, 9 months ago
Reviewers:
r, gobot
CC:
golang-codereviews, r
Visibility:
Public.

Description

fmt: measure width in runes not bytes with %c and %q for ints Change these calls to measure width in runes not bytes: fmt.Printf("(%5q)\n", '§') fmt.Printf("(%3c)\n", '§') Fixes issue 8275.

Patch Set 1 #

Patch Set 2 : diff -r ae0d51eadf44 https://code.google.com/p/go #

Patch Set 3 : diff -r 6125ea2b1dbf https://code.google.com/p/go #

Patch Set 4 : diff -r 6125ea2b1dbf https://code.google.com/p/go #

Patch Set 5 : diff -r 6125ea2b1dbf https://code.google.com/p/go #

Patch Set 6 : diff -r 6125ea2b1dbf https://code.google.com/p/go #

Patch Set 7 : diff -r e4960388d0db https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/pkg/fmt/fmt_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/fmt/format.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
mb
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 9 months ago (2014-07-29 18:13:04 UTC) #1
mb
Patch Set 3 is a solution that converts the runes to strings. Rob pointed out ...
9 years, 9 months ago (2014-07-29 18:30:18 UTC) #2
r
LGTM i submitted before fixing the CL description to drop the RFC. i was distracted ...
9 years, 9 months ago (2014-07-29 20:34:29 UTC) #3
mb
I updated the CL description. Looks like another commit was made instead, which lists me ...
9 years, 9 months ago (2014-07-29 20:56:29 UTC) #4
r
https://codereview.appspot.com/118420043 sent My fault. Tools let me down but it was my mistake. -rob
9 years, 9 months ago (2014-07-29 22:38:42 UTC) #5
r
*** Submitted as https://code.google.com/p/go/source/detail?r=83651ae3a9b9 *** fmt: measure width in runes not bytes with %c and ...
9 years, 9 months ago (2014-07-29 23:46:01 UTC) #6
gobot
9 years, 9 months ago (2014-07-30 00:01:47 UTC) #7
This CL appears to have broken the netbsd-amd64-bsiegert builder.
See http://build.golang.org/log/f400df3e9c7504acffe219354181f4b8c1e3d492
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b