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

Issue 11219045: code review 11219045: go.talks/present: URL use `/` instead of `\` on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by chai2010
Modified:
10 years, 9 months ago
Reviewers:
adg
CC:
golang-dev, dave_cheney.net, minux1, adg
Visibility:
Public.

Description

go.talks/present: URL use `/` instead of `\` on windows Fixes issue 5876.

Patch Set 1 #

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

Patch Set 3 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Total comments: 2

Patch Set 4 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Total comments: 6

Patch Set 5 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Total comments: 2

Patch Set 6 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Total comments: 5

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

Patch Set 8 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Patch Set 9 : diff -r 066b009fee9d https://code.google.com/p/go.talks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M present/dir.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21
chai2010
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.talks
10 years, 9 months ago (2013-07-13 00:36:12 UTC) #1
dave_cheney.net
Please add a test if possible. https://codereview.appspot.com/11219045/diff/6001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/6001/present/dir.go#newcode132 present/dir.go:132: Path: strings.Replace(filepath.Join(name, fi.Name()), ...
10 years, 9 months ago (2013-07-13 01:33:27 UTC) #2
chai2010
sorry, i don't know how to add this test. can you give me some suggest? ...
10 years, 9 months ago (2013-07-13 01:50:58 UTC) #3
dave_cheney.net
On 2013/07/13 01:50:58, chai2010 wrote: > sorry, i don't know how to add this test. ...
10 years, 9 months ago (2013-07-13 01:54:41 UTC) #4
chai2010
On 2013/07/13 01:54:41, dfc wrote: > On 2013/07/13 01:50:58, chai2010 wrote: > > sorry, i ...
10 years, 9 months ago (2013-07-13 02:07:30 UTC) #5
dave_cheney.net
Thanks for taking a look at this and making it work on windows. Was there ...
10 years, 9 months ago (2013-07-13 02:14:24 UTC) #6
chai2010
please take another look. https://codereview.appspot.com/11219045/diff/11001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/11001/present/dir.go#newcode32 present/dir.go:32: name := path.Join(base, r.URL.Path) On ...
10 years, 9 months ago (2013-07-13 02:40:06 UTC) #7
dave_cheney.net
Very close, please revert that one change. https://codereview.appspot.com/11219045/diff/17001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/17001/present/dir.go#newcode32 present/dir.go:32: name := ...
10 years, 9 months ago (2013-07-14 09:34:28 UTC) #8
chai2010
i don't know does path.Join(name, fi.Name()) return path can contain `\` character. if can't contain ...
10 years, 9 months ago (2013-07-14 10:31:46 UTC) #9
dave_cheney.net
Please try this suggestion. https://codereview.appspot.com/11219045/diff/23001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/23001/present/dir.go#newcode132 present/dir.go:132: Path: strings.Replace(filepath.Join(name, fi.Name()), `\`, `/`, ...
10 years, 9 months ago (2013-07-14 11:00:55 UTC) #10
chai2010
https://codereview.appspot.com/11219045/diff/23001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/23001/present/dir.go#newcode132 present/dir.go:132: Path: strings.Replace(filepath.Join(name, fi.Name()), `\`, `/`, -1), On 2013/07/14 11:00:56, ...
10 years, 9 months ago (2013-07-14 11:15:45 UTC) #11
dave_cheney.net
Please try one more thing, I'm sorry this has been such a beast to get ...
10 years, 9 months ago (2013-07-14 11:22:23 UTC) #12
chai2010
https://codereview.appspot.com/11219045/diff/23001/present/dir.go File present/dir.go (right): https://codereview.appspot.com/11219045/diff/23001/present/dir.go#newcode132 present/dir.go:132: Path: strings.Replace(filepath.Join(name, fi.Name()), `\`, `/`, -1), On 2013/07/14 11:22:23, ...
10 years, 9 months ago (2013-07-14 11:35:53 UTC) #13
minux1
how about using filepath.ToSlash? i think it makes the intent clearer.
10 years, 9 months ago (2013-07-14 17:55:25 UTC) #14
chai2010
On 2013/07/14 17:55:25, minux wrote: > how about using filepath.ToSlash? > i think it makes ...
10 years, 9 months ago (2013-07-14 23:26:26 UTC) #15
chai2010
PTAL
10 years, 9 months ago (2013-07-14 23:29:05 UTC) #16
adg
Does this really fix both issues? I can see how it fixes 5879, but not ...
10 years, 9 months ago (2013-07-15 00:07:52 UTC) #17
chai2010
On 2013/07/15 00:07:52, adg wrote: > Does this really fix both issues? > > I ...
10 years, 9 months ago (2013-07-15 00:43:10 UTC) #18
adg
LGTM Okay, then, I've merged the two issues. Make the change description say "Fixes issue ...
10 years, 9 months ago (2013-07-15 00:49:59 UTC) #19
chai2010
On 2013/07/15 00:49:59, adg wrote: > LGTM > > Okay, then, I've merged the two ...
10 years, 9 months ago (2013-07-15 01:07:29 UTC) #20
adg
10 years, 9 months ago (2013-07-15 01:15:20 UTC) #21
*** Submitted as
https://code.google.com/p/go/source/detail?r=2fa985dc2a92&repo=talks ***

go.talks/present: URL use `/` instead of `\` on windows

Fixes issue 5876.

R=golang-dev, dave, minux.ma, adg
CC=golang-dev
https://codereview.appspot.com/11219045

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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