Skip to content

Use classic locale grouping without locale support - #4947

Open
tiagomacarios wants to merge 2 commits into
fmtlib:mainfrom
tiagomacarios:fix-nolocale-localized-formatting
Open

tiagomacarios wants to merge 2 commits into
fmtlib:mainfrom
tiagomacarios:fix-nolocale-localized-formatting

Conversation

@tiagomacarios

Copy link
Copy Markdown
Contributor

Addresses #4941.

When FMT_USE_LOCALE=0, keep accepting the L specifier but use classic/C locale semantics. In particular, localized floating-point formatting no longer applies the fallback comma grouping; integer behavior is unchanged.

The second commit converts nolocale-test from a compile-only target into a registered executable and verifies localized integer and floating-point output at runtime. Chrono locale handling remains separate in #4921.

Tested with MSVC 19.51 using FMT_PEDANTIC=ON:

ctest -R ^nolocale-test$ --output-on-failure

tiagomacarios and others added 2 commits September 15, 2026 08:58
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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