os.hostname() return garbled code on windows if the host name contains non ascii characters #38255
Labels
confirmed-bug
Issues with confirmed bugs.
libuv
Issues and PRs related to the libuv dependency or the uv binding.
windows
Issues and PRs related to the Windows platform.
What steps will reproduce the bug?
ANDREW-ü-LAPTOP
ANDREW-�-LAPTOP
How often does it reproduce? Is there a required condition?
Always happen.
What is the expected behavior?
ANDREW-ü-LAPTOP
What do you see instead?
ANDREW-�-LAPTOP
Additional information
the fix of #27848 would work fine on linux/macOs. But on windows, libuv's implement does not decoding the string which return be windows API, which cause this bug.
The text was updated successfully, but these errors were encountered: