Skip to content

[HTML] Ensure safe global locale fallback setup#10652

Open
millanzarreta wants to merge 2 commits intosimulationcraft:thewarwithinfrom
millanzarreta:html-global-locale-fallback
Open

[HTML] Ensure safe global locale fallback setup#10652
millanzarreta wants to merge 2 commits intosimulationcraft:thewarwithinfrom
millanzarreta:html-global-locale-fallback

Conversation

@millanzarreta
Copy link
Contributor

Currently, in some environments, simc may throw an exception during HTML report creation if the locales en_US.UTF-8 and en_US.utf8 do not exist.

This PR makes the global locale setup in the HTML report section more robust by adding a fallback mechanism. It tries several common locale names and falls back to std::locale::classic() (which should never fail) as a last resort.

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