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

Issue 105030046: code review 105030046: time: change formatting of microseconds duration to SI ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by r
Modified:
9 years, 6 months ago
Reviewers:
rsc, dsymonds, rog, gri, bradfitz
CC:
golang-codereviews, bradfitz, gri
Visibility:
Public.

Description

time: change formatting of microseconds duration to SI modifier 'u' is not micro, µ (U+00B5) is.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -13 lines) Patch
M src/pkg/time/example_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/time/time.go View 1 1 chunk +9 lines, -10 lines 0 comments Download
M src/pkg/time/time_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
r
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
9 years, 10 months ago (2014-06-11 15:14:58 UTC) #1
bradfitz
This seems like a borderline violation of the spirit of the Go 1 API contract. ...
9 years, 10 months ago (2014-06-11 17:16:01 UTC) #2
r
Yes, it is borderline. We need to decide whether this is OK to fix. I ...
9 years, 10 months ago (2014-06-11 20:33:00 UTC) #3
gri
LGTM Not using µ looks like a bug to me. That's what Unicode is for.
9 years, 10 months ago (2014-06-11 20:43:44 UTC) #4
bradfitz
LGTM We can see if anybody complains during the cycle. Add it to go1.4.txt at ...
9 years, 10 months ago (2014-06-12 03:05:51 UTC) #5
r
*** Submitted as https://code.google.com/p/go/source/detail?r=071f1277e47d *** time: change formatting of microseconds duration to SI modifier 'u' ...
9 years, 10 months ago (2014-06-13 00:01:17 UTC) #6
dsymonds
This feels like a mistake. "u" is, you're right, technically incorrect, but I agree with ...
9 years, 10 months ago (2014-06-17 06:19:34 UTC) #7
r
I will roll it back if it breaks too many things but I don't expect ...
9 years, 10 months ago (2014-06-17 14:11:20 UTC) #8
rsc
LGTM I wrote this code, and I support this change. I chose u because I ...
9 years, 10 months ago (2014-06-17 14:46:09 UTC) #9
rog
FWIW this has just broken some of our tests. But they're easy to fix. On ...
9 years, 6 months ago (2014-10-14 09:51:06 UTC) #10
rsc
On Tue, Oct 14, 2014 at 5:51 AM, roger peppe <rogpeppe@gmail.com> wrote: > FWIW this ...
9 years, 6 months ago (2014-10-14 14:19:17 UTC) #11
rog
9 years, 6 months ago (2014-10-15 11:44:05 UTC) #12
Message was sent while issue was closed.
On 2014/10/14 14:19:17, rsc wrote:
> On Tue, Oct 14, 2014 at 5:51 AM, roger peppe <mailto:rogpeppe@gmail.com>
wrote:
> 
> > FWIW this has just broken some of our tests.
> >
> 
> How? Were you not parsing the output with Go? Were you expecting a golden
> string?
> 
> Russ

The test was testing log output. Part of the output included a request duration
matched against the regular expression [0-9.ums]+.
Sign in to reply to this message.

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