Peter, On Tuesday, 2021-06-15 08:41:40 +0100, you wrote:
> ... > > # eselect locale set 4 > > # env-update > > > > >>> Regenerating /etc/ld.so.cache... > > After that you need to source /etc/profile, no? Yes, if you want to continue working in this shell. But if I start my Gentoo update script from my unprivileged userid, it only depends on my own environment and on what "/etc/sudoers" allows through. But your remark made me curious about what was really changed in the environment. So I started a privileged shell using my own environment and then executed # env | sort > /tmp/env1 # . /etc/profile # env | sort > /tmp/env2 # diff -du /tmp/env* The trivial environment variable changes were for "LESS", "LS_COLORS" (which was added), "MANPATH", "PATH", and "PS1". However, the non-triv- ial environment variable change was: -LANG=en_GB.UTF-8 +LANG=en_GB.utf8 which sort of shocked me, because that effectively again unset the only variable setting that allowed building of package "/texlive-basic-2021": > ... > > So "en_GB.utf8" in "02locale" but "export LANG=en_GB.UTF-8" in my Shell > > script doing the Gentoo updates is the only working combination I've yet > > found. May this be some sort of bug in "glibc"? Utterly puzzled ... Rainer