Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive/zip: FileHeader struct lacks Unicode Path Extra Field (0x7075) #36760

Open
iamnp opened this issue Jan 25, 2020 · 1 comment
Open

archive/zip: FileHeader struct lacks Unicode Path Extra Field (0x7075) #36760

iamnp opened this issue Jan 25, 2020 · 1 comment
Milestone

Comments

@iamnp
Copy link

@iamnp iamnp commented Jan 25, 2020

What version of Go are you using (go version)?

$ go version go1.13.6 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\npanin\AppData\Local\go-build
set GOENV=C:\Users\npanin\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\GoProjects
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\npanin\AppData\Local\Temp\go-build726899154=/tmp/go-build -gno-record-gcc-switches

What did you do?

Tried to read ZIP file with unicode filename using archive/zip package

What did you expect to see?

FileHeader struct field to store Unicode Path Extra Field as described in 4.6.9 of https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

What did you see instead?

No way to retrieve Unicode Path Extra Field except for manually parsing it from FileHeader.Extra field

@FedorArbuzov
Copy link

@FedorArbuzov FedorArbuzov commented Jan 25, 2020

Have the same problem!!!

@odeke-em odeke-em changed the title FileHeader struct (archive/zip/struct.go) lacks of Unicode Path Extra Field (0x7075) archive/zip: FileHeader struct lacks Unicode Path Extra Field (0x7075) Jan 29, 2020
@odeke-em odeke-em added this to the Backlog milestone Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.