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

Improve System::User specs on Windows #15156

Merged

Conversation

HertzDevil
Copy link
Contributor

  • Ensures USER_NAME and USER_ID are correct if the current username contains whitespace characters.
  • Normalizes the username portion of the user ID in assertions as well, since it seems some versions of Windows would break the specs without it. We already do this to the domain portion.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows Windows support based on the MSVC toolchain / Win32 API kind:specs topic:stdlib:system labels Nov 5, 2024
@straight-shoota straight-shoota added this to the 1.15.0 milestone Nov 5, 2024
@straight-shoota straight-shoota merged commit a92a6c2 into crystal-lang:master Nov 6, 2024
69 checks passed
@HertzDevil HertzDevil deleted the bug/windows-user-whitespace branch November 6, 2024 09:38
CTC97 pushed a commit to CTC97/crystal that referenced this pull request Nov 9, 2024
* Ensures `USER_NAME` and `USER_ID` are correct if the current username contains whitespace characters.
* Normalizes the username portion of the user ID in assertions as well, since it seems some versions of Windows would break the specs without it. We already do this to the domain portion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:system
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants