Skip to content

build user has no env LANG & LC_TYPE #80

Open
wwwutz opened this issue Aug 28, 2019 · 2 comments
Open

build user has no env LANG & LC_TYPE #80

wwwutz opened this issue Aug 28, 2019 · 2 comments

Comments

@wwwutz
Copy link
Contributor

wwwutz commented Aug 28, 2019

when sudo -u build the envs LANG and LC_CTYPE are unset.

This forces util-linux's col command to fail on UTF-8 input.

our system defaults are

LANG=C
LC_CTYPE=en_US.UTF-8

setting them in the build scipts does fix the issue.

@pmenzel
Copy link
Contributor

pmenzel commented Aug 28, 2019

Most environment variables are unset by sudo. The switches below exist to change that behavior.

  1. -E, --preserve-env
  2. --preserve-env=list

@wwwutz
Copy link
Contributor Author

wwwutz commented Aug 28, 2019

That's not the point. I don't want the sudo process to inherit ANY $ENV my process has.

That said: PATH is set, LANG not.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants