From dfb0f7aa5e50c512875bbf1c31ec93d8a214842c Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Dec 14 2020 16:16:29 +0000 Subject: Enforce stable LC_ALL=C.UTF-8 in jobs environment FreeIPA uses oddjobd to run Python scripts. It also expects that the execution environment uses UTF-8 encoding. On RHEL 8.4 default configuration changed to provide LC_ALL=en_US which uses ISO-8859-1 encoding instead of UTF-8. Enforce C.UTF-8 to not depend on the system defaults. Resolves: rhbz#1907481 Signed-off-by: Alexander Bokovoy --- diff --git a/scripts/oddjobd.service.in b/scripts/oddjobd.service.in index c1aceb3..e220e51 100644 --- a/scripts/oddjobd.service.in +++ b/scripts/oddjobd.service.in @@ -5,6 +5,7 @@ After=syslog.target network.target dbus.service [Service] Type=simple PIDFile=/run/oddjobd.pid +Environment=LC_ALL=C.UTF-8 ExecStart=@sbindir@/oddjobd -n -p /run/oddjobd.pid -t 300 [Install]