Skip to content

Fixes issues where lua uses the C# default locale instead of the invariant locale (C)#314

Open
imi0 wants to merge 2 commits into
nuskey8:mainfrom
imi0:pr/locale-fix
Open

Fixes issues where lua uses the C# default locale instead of the invariant locale (C)#314
imi0 wants to merge 2 commits into
nuskey8:mainfrom
imi0:pr/locale-fix

Conversation

@imi0
Copy link
Copy Markdown

@imi0 imi0 commented May 18, 2026

os.setlocale only supports "C" in Lua-CSharp and that is the assumed default.

Most places already use invariant locale, but io.write and os.date still used the locale set by .NET, leading to inconsistent results on machines with a non-US locale (e.g. my de/DE)

Immanuel Scholz added 2 commits May 18, 2026 09:41
This fixes "tests-lua/verybig.lua" test case on cultures that use "," as decimal (e.g. 'de')
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.

1 participant