1 |
Peter, |
2 |
|
3 |
On Tuesday, 2021-06-15 08:41:40 +0100, you wrote: |
4 |
|
5 |
> ... |
6 |
> > # eselect locale set 4 |
7 |
> > # env-update |
8 |
> > |
9 |
> > >>> Regenerating /etc/ld.so.cache... |
10 |
> |
11 |
> After that you need to source /etc/profile, no? |
12 |
|
13 |
Yes, if you want to continue working in this shell. But if I start my |
14 |
Gentoo update script from my unprivileged userid, it only depends on my |
15 |
own environment and on what "/etc/sudoers" allows through. |
16 |
|
17 |
But your remark made me curious about what was really changed in the |
18 |
environment. So I started a privileged shell using my own environment |
19 |
and then executed |
20 |
|
21 |
# env | sort > /tmp/env1 |
22 |
# . /etc/profile |
23 |
# env | sort > /tmp/env2 |
24 |
# diff -du /tmp/env* |
25 |
|
26 |
The trivial environment variable changes were for "LESS", "LS_COLORS" |
27 |
(which was added), "MANPATH", "PATH", and "PS1". However, the non-triv- |
28 |
ial environment variable change was: |
29 |
|
30 |
-LANG=en_GB.UTF-8 |
31 |
+LANG=en_GB.utf8 |
32 |
|
33 |
which sort of shocked me, because that effectively again unset the only |
34 |
variable setting that allowed building of package "/texlive-basic-2021": |
35 |
|
36 |
> ... |
37 |
> > So "en_GB.utf8" in "02locale" but "export LANG=en_GB.UTF-8" in my Shell |
38 |
> > script doing the Gentoo updates is the only working combination I've yet |
39 |
> > found. |
40 |
|
41 |
May this be some sort of bug in "glibc"? |
42 |
|
43 |
Utterly puzzled ... |
44 |
Rainer |