Werk #13353: Linux agent: Fix two localisation issues

Komponente Checks & agents
Titel Linux agent: Fix two localisation issues
Datum 29.10.2021
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.1.0i1 2.0.0p15
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

On some systems, the linux agent tried to set invalid localisation settings. For example, when C.utf8 is not available, but es_EC.utf8 is, the agent still tried to set C.utf8 as localisation, which resulted in the error setlocale: LC_ALL: cannot change locale.

Furthermore, in the rare case where the locale or the inpath command were not available, no localisation was set. These cases now default to LC_ALL=C.

Zur Liste aller Werks