Skip to content

Update stringshims to always use clocale #1427

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmschonfeld
Copy link
Contributor

When updating the JSON encoder tests to swift-testing, we noticed that on Windows the test that calls setlocale (which now runs in parallel to other tests) was interfering with other JSON tests causing rare crashes. This updates our string shims to explicitly use the c locale rather than relying on a NULL value (which on Windows used the global current locale)

@jmschonfeld jmschonfeld requested a review from kperryua July 11, 2025 22:24
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor

Thanks @jmschonfeld!

Copy link
Contributor

@kperryua kperryua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

3 participants