os: Binary data written to os.Stdout gets corrupted on Windows 8.1 #42337
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (namely
go version go1.15.3 linux/amd64
)What operating system and processor architecture are you using (
go env
)?I'm cross-compiling on Linux/amd64 (see the following
go env
output), and running on Windows 8.1/amd64:go env
OutputWhat did you do?
Using
I built the following program
Then I ran it on
cmd.exe
on Windows 8.1 like so:What did you expect to see?
A
file
containing the single byte 65 (i.e. 'A')(On Unix and Windows 10 - running the very same
main.exe
build - this is indeed what I am seeing)N.B. Both tested Windows 8.1. and Windows 10 were Japanese language Windows installations.
What did you see instead?
file
was 8 bytes in size, containing the following bytes (hex dump):Here's the issue on Stackoverflow: https://stackoverflow.com/q/64639265/709537 (closed of course by the Stackoverflow Gestapo)
The text was updated successfully, but these errors were encountered: