If I open the 'Region and language' dialog, I have 'Formats' set to 'Germany'. If I click that setting, the 'Numbers' preview is '123.456.789,00' (comma as a decimal separator).
But if I run python3 -c 'import locale; print(locale.localeconv()["decimal_point"])', it outputs . (a dot, not a comma).
How can I get the decimal point as configured by the user in the 'Region and language' dialog?
LC_ALL. On my system, somehow all the variables reported bylocaleare not de_DE even though Germany is selected as mentioned. – Janus Troelsen Nov 26 '18 at 20:31localecommand). If you switched to German as Format in the current session, you need to relogin to have theLC_NUMERICvariable (which affects the decimal separator) updated. – Gunnar Hjalmarsson Nov 26 '18 at 21:00