[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-19 Thread Andreas Reuterberg
I've written a fix for the easyjson library using filepath functions, so I'm not worried about that. But I did expect os.Getwd() to return the same exact string, regardless of how the test is run. "go test . -v" os.Getwd() uses the GOPATH variable "go test . -c" results in a binary where os.Getw

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-18 Thread Guy Allard
Peter - Yep, with a little more experimentation I just found that out. Either result can be reproduced. Guy On Tuesday, April 18, 2017 at 9:06:41 AM UTC-4, peterGo wrote: > > Guy, > > It's easy to get any result you want: same case, different case. It's an > easyjson problem. > > Peter > > On T

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-18 Thread peterGo
Guy, It's easy to get any result you want: same case, different case. It's an easyjson problem. Peter On Tuesday, April 18, 2017 at 8:55:03 AM UTC-4, Guy Allard wrote: > > I do net see that here. C: is uppercase in both cases. > > go 1.8 > Win 7 > > On Monday, April 17, 2017 at 11:06:50 AM UTC-

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-18 Thread peterGo
Andreas, To fix the easyjson library, please provide a simple recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best. What did you expect to see? What did you see instead? Peter On Tuesday, April 18, 2017 at 3:14:47 AM UTC-4, Andreas Reuterberg

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-18 Thread Guy Allard
I do net see that here. C: is uppercase in both cases. go 1.8 Win 7 On Monday, April 17, 2017 at 11:06:50 AM UTC-4, Andreas Reuterberg wrote: > > I'm calling os.Getwd() as part of a very simple test, but I get different > responses > depending on if I'm executing the test as a binary or not. The

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-18 Thread Andreas Reuterberg
I care because the library I am trying out breaks due to this issue (easyjson). But also, isn't it a bit odd and interesting that the code works differently as a binary? Andreas -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fr

[go-nuts] Re: os.Getwd() on windows changes drive letter casing

2017-04-17 Thread peterGo
Andreas, Why do you care? Naming Files, Paths, and Namespaces https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx "Do not assume case sensitivity. For example, consider the names OSCAR, Oscar, and oscar to be the same." Peter On Monday, April 17, 2017 at 3:06:50 PM UTC, And