Skip to content

Commit

Permalink
packages: Include locales
Browse files Browse the repository at this point in the history
- en_US.UTF-8 locales are needed for Python 3.12 for proper collation
- the c.UTF-8 collation no longer does work as Unicode
- This switches back to en_US.UTF-8 locales inside container because we need it anyway for Python
  • Loading branch information
nijel committed Nov 2, 2023
1 parent be632d7 commit a9091dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ RUN \

# Configure utf-8 locales to make sure Python
# correctly handles unicode filenames, configure settings
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Home directory
ENV HOME=/home/weblate
# Use Docker specific settings
Expand Down Expand Up @@ -74,6 +74,7 @@ RUN \
pkg-config \
file \
make \
locales \
libcairo2-dev \
libxml2-dev \
libacl1-dev \
Expand All @@ -97,6 +98,8 @@ RUN \
unzip \
xz-utils \
&& c_rehash \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
Expand Down

0 comments on commit a9091dc

Please sign in to comment.