Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid locale switching #4184

Open
KjellMorgenstern opened this issue Oct 11, 2024 · 0 comments
Open

Avoid locale switching #4184

KjellMorgenstern opened this issue Oct 11, 2024 · 0 comments

Comments

@KjellMorgenstern
Copy link
Member

Problem

ngspice uses the systems locale to read numbers.
However, we always use decimal dots when serializing numbers.

To avoid problems with the locale, we set it (and reset it) for each single call to ngspice.
This doesn't look right, although it seems to work.

Proposed Solution

Use locale LC_NUMERIC "C" for the complete Fritzing process.
We already introduced QLocale for the UI. There might be some places that don't yet apply this.
Also, be possible to set the QLocale in the preferences, e.g. when working with an international team.

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

When branches are created from issues, their pull requests are automatically linked.

1 participant