Open lerbec4 opened 3 years ago
The function that converts numeric values to a string uses a hardcoded decimal separator ('.'). The problem is this breaks localization for locales that use a comma for the decimal separator. This can be reproduced using the following Lua script:
os.setlocale("fr_FR") print(1.5)
This prints the following:
1.5
However, this should print:
1,5
It's by design: https://github.com/LuaJIT/LuaJIT/issues/673
Direct links to documentation: https://luajit.org/extensions.html#tostring, https://luajit.org/extensions.html#tonumber
The function that converts numeric values to a string uses a hardcoded decimal separator ('.'). The problem is this breaks localization for locales that use a comma for the decimal separator. This can be reproduced using the following Lua script:
This prints the following:
However, this should print: