http://codereview.appspot.com/5124044/diff/5007/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5124044/diff/5007/src/pkg/archive/zip/struct.go#newcode34 src/pkg/archive/zip/struct.go:34: creatorUnix = 3 Where did this come from? Is ...
12 years, 7 months ago
(2011-09-25 04:27:48 UTC)
#3
PTAL [Russ] > Please revert the os/types.go changes. > 'reports whether' is the intended wording ...
12 years, 7 months ago
(2011-09-25 17:15:53 UTC)
#4
PTAL
[Russ]
> Please revert the os/types.go changes.
> 'reports whether' is the intended wording for bools.
I thought I had seen the opposite being agreed to, but
clearly I got it wrong. Reverted.
[Andrew]
http://codereview.appspot.com/5124044/diff/5007/src/pkg/archive/zip/struct.go
File src/pkg/archive/zip/struct.go (right):
http://codereview.appspot.com/5124044/diff/5007/src/pkg/archive/zip/struct.go...
src/pkg/archive/zip/struct.go:34: creatorUnix = 3
> Where did this come from? Is it setting two bits,
> or is there something else?
Comes from the documentation for the relevant field in
the documentation pointed at in line 8 of this file,
section J:
"""
The upper byte indicates the compatibility of the file
attribute information. If the external file attributes
(...)
"""
> Should this just be 3<<8 here?
Works either way for me. There's just no practical benefit
in shifting the constant in the documentation at the moment.
LGTM http://codereview.appspot.com/5124044/diff/1003/src/pkg/archive/zip/struct.go File src/pkg/archive/zip/struct.go (right): http://codereview.appspot.com/5124044/diff/1003/src/pkg/archive/zip/struct.go#newcode34 src/pkg/archive/zip/struct.go:34: creatorUnix = 3 Please put this up in ...
12 years, 7 months ago
(2011-09-25 23:04:45 UTC)
#5
Issue 5124044: code review 5124044: archive/zip: add support for reading and writing unix f...
(Closed)
Created 12 years, 7 months ago by niemeyer
Modified 12 years, 7 months ago
Reviewers:
Base URL:
Comments: 3