Skip to content

std: implement hostname using GetHostNameW on Windows, #1

Merged
orowith2os merged 1 commit intoorowith2os:std-net-gethostnamefrom
joboet:std-net-gethostname
Jan 24, 2025
Merged

std: implement hostname using GetHostNameW on Windows, #1
orowith2os merged 1 commit intoorowith2os:std-net-gethostnamefrom
joboet:std-net-gethostname

Conversation

@joboet
Copy link

@joboet joboet commented Jan 24, 2025

..and make the UNIX code resilient against bad platform behaviour.

std's tests need to pass on Windows, so hostname must be implemented there before rust-lang#135141 can be merged. I also took the opportunity to correct some of the UNIX code, gethostname has some very weird behaviour on some platforms, this change should make the implementation resilient against that.

…code resilient against bad platform behaviour
@orowith2os orowith2os merged commit 62d9eff into orowith2os:std-net-gethostname Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants