Werk #13353: Linux agent: Fix two localisation issues
| Component | Checks & agents | ||||
| Title | Linux agent: Fix two localisation issues | ||||
| Date | Oct 29, 2021 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
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.