Skip to content

Use the LANG environment variable on Linux #1308

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

Cyberbeni
Copy link

Partial fix for #717

Tried running swift test --filter LocaleTests but it seems to be crashing even without my changes, so I couldn't test these changes.

@YOCKOW
Copy link
Member

YOCKOW commented May 25, 2025

💭 I think the difficult problem to solve here is that reading the value from LANG will cause another inconsistency with Darwin's behavior. I mean Locale.current.identifier is not affected by LANG on Darwin.

@Cyberbeni
Copy link
Author

I think locale settings should be consistent with the OS, so it doesn't matter if it's inconsistent between OSs.

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