archive/tar: Writer produces bad tar files on Windows #34839
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/dmkEunM6jGX
Running this on Linux or Darwin produces a tar file containing two files,
Test
andOther
, as expected. Running this on Windows, however, produces a file which thefile
command identifies asdata
, not a tar file, and running any tar command against it results in errors. Runningtar -t
with the GNUtar
command yieldswhile bsdtar, which the
tar.exe
that comes with Windows is a port of, yieldsThe text was updated successfully, but these errors were encountered: