'Failed to set locale, defaulting to C' for CentOS images on master
Bug #1850035 reported by
Mark Goddard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Unassigned |
Bug Description
We see the following error when building CentOS images on master:
Failed to set locale, defaulting to C
Not seen if we remove this line from the base Dockerfile:
ENV LANG C.UTF-8
Changed in kolla: | |
importance: | Undecided → Medium |
status: | New → Triaged |
To post a comment you must log in.
Hmm, indeed it was set for Ubuntu's/Debian's newer Python.
It looks supported in RHEL 8 though.
We can go en_US.UTF-8 and test if it passes our CI.
C.UTF-8 seems to have broken collation (sorting and comparing of Unicode).
As previously discussed, official Python images [1] use C.UTF-8 but they use Debian and Alpine (and Windows).
One thing is sure, we should not drop Unicode from images as this fixed Glance metadata errors we had.
[1] https:/ /hub.docker. com/_/python