AyatanaIndicators / ayatana-indicator-display

Ayatana Indicator Display
GNU General Public License v3.0
2 stars 7 forks source link

src/main.cpp: Initialize LC_NUMERIC with 'POSIX'. #97

Closed sunweaver closed 5 months ago

sunweaver commented 5 months ago

This assures that float number conversions (from float to string via e.g. g_strdup_sprintf()) always use a dot in decimal numbers.

This resolves blackening of the screen if users with e.g. de_DE.UTF-8 use the brightness slider and hand over a komma-decimal to the xsct executable (which only understands dot-decimals).

As we don't use numbers / number conversions anywhere else in the display indicator, this global setting of LC_NUMERIC seems to be the easiest approach.