Localization broken when printing numeric values
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 252
- Avg merge
- 7d 11h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Lua script with os.setlocale("fr_FR") and inspect the numeric conversion path used by print. Done means the same reproduction formats 1.5 using the locale's comma decimal separator without breaking other numeric output; the issue names no source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100