mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-12 19:42:55 +01:00
Use C.UTF-8
We use C.UTF-8 on production, this change unifies usage of C.UTF-8 in all images. Changelog: changed
This commit is contained in:
parent
b6e40a81cd
commit
6b2d75fc44
15 changed files with 40 additions and 40 deletions
|
|
@ -37,10 +37,10 @@ fi
|
|||
|
||||
# Set UTF-8
|
||||
# http://stackoverflow.com/a/3182519/2137281
|
||||
LOC=$'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8'
|
||||
LOC=$'LC_ALL=C.UTF-8\nLANG=C.UTF-8'
|
||||
echo "$LOC" > /etc/environment
|
||||
cat /etc/environment
|
||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||
echo "C.UTF-8 UTF-8" > /etc/locale.gen
|
||||
locale-gen
|
||||
dpkg-reconfigure locales -f noninteractive -p critical
|
||||
locale -a
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ mv gitlab-ci-multi-runner-linux-amd64 /usr/bin/gitlab-runner-helper
|
|||
chmod +x /usr/bin/gitlab-runner-helper
|
||||
|
||||
# Set UTF-8
|
||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||
echo "C.UTF-8 UTF-8" > /etc/locale.gen
|
||||
locale-gen
|
||||
update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
||||
update-locale LANG=C.UTF-8 LC_CTYPE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
locale -a
|
||||
|
||||
# Clean up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue