fmt: cannot read more than 254 characters in Windows when calling Fscanln #42551
Labels
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. It also reproduces with current tip
go version devel +b34b0aaf69 Thu Nov 12 15:28:43 2020 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
On the Windows host, I type
A
character 257 times after running the program, then press enter key. The Go program reads them correctly.What did you see instead?
On the Windows host, I typed
A
character 257 times after running the program, then presed enter key. The Go program stdin froze after 254 characters.I don't really know if this is related to Go at all or an issue with Powershell itself, but I thought it was worth submitting an issue. This was initially discovered by @karelorigin.
Best regards,
Miguel
The text was updated successfully, but these errors were encountered: