Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: implement hostname using GetHostNameW on Windows, #1

Merged

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