wasm: Writing non-ASCII text to stdout or stderr fails on Windows #43917
Labels
arch-wasm
WebAssembly issues
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
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Code:
Build with:
What did you expect to see?
What did you see instead?
This appears to be because of a bug in node: nodejs/node#24550. Unfortunately the bug was closed as "won't fix" (not sure why). But it seems to be easy to work around from Go's end by changing the JavaScript wrapper script to manually forward file descriptors 1 and 2 to
process.stdout
andprocess.stderr
respectively:The text was updated successfully, but these errors were encountered: