]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Enforce C.UTF-8 locale for all commands we run
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 27 May 2025 09:00:07 +0000 (11:00 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 27 May 2025 09:09:23 +0000 (11:09 +0200)
commiteda2ed533dbfe1bf7bf30b53355e6577fac97ba8
tree7e9c6459743bba08160fc194ff2368e72d01273d
parentef2842dfea38e209450e86e4b27e372f6e5da707
Enforce C.UTF-8 locale for all commands we run

So this is a shitty situation either way. We generally have no idea
which locales will be available in the tools tree. Most likely, it'll
just be the C.UTF-8 one. In that case, using the locale environment
variables from the host is pointless and leads to annoying errors from
lots of tools.

We could make sure all locales are installed but glibc-all-langpacks is
> 200M installed size on Fedora which feels like too much. So let's
instead always use C.UTF-8, it's not like mkosi itself is locale aware
anyway.
mkosi/run.py