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

DataSchema: Modify locale default behaviour in StepDefaults 5.0 and 5.1 #44

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

PeterKraus
Copy link
Collaborator

@PeterKraus PeterKraus commented Aug 21, 2024

Closes dgbowl/yadg#177.

Previously, DataSchema-5.0 would probe LC_ALL to get the default locale, and if unset, would crash. Now, we probe LC_ALL (which is often set on Windows), then LC_NUMERIC (which is often set on Linux and Mac), and then fall back to en_GB.UTF-8.

I have also modified DataSchema-5.1 which previously only probed LC_NUMERIC to also probe LC_ALL if LC_NUMERIC is unset (as is the case on Windows). The default / fallback remains en_GB.

@PeterKraus PeterKraus merged commit 8c03d63 into master Aug 21, 2024
17 checks passed
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.

Stepdefaults.py failling to set default locale and raising an error
1 participant