mirror of https://github.com/zulip/zulip.git
locale: Fix incorrect use of locale-gen to generate locales.
Previously, we were having issues installing on Debian Stretch with non-English locales, because `locale-gen` actually doesn't take a locale as an argument (and thus `locale-gen en_US.UTF-8` did nothing). We should instead be calling localedef directly. Thanks to Tom Daff for debugging this. Fixes #10629.
This commit is contained in:
parent
d60a088a49
commit
9054ce278f
|
@ -4,7 +4,7 @@ EXPOSE 9991
|
|||
|
||||
RUN apt-get update && apt-get install -y wget
|
||||
|
||||
RUN locale-gen en_US.UTF-8
|
||||
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
|
||||
|
||||
RUN useradd -d /home/zulip -m zulip && echo 'zulip ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ set -x
|
|||
ZULIP_PATH="$(readlink -f $(dirname $0)/../..)"
|
||||
|
||||
# Force a known locale. Some packages on PyPI fail to install in some locales.
|
||||
locale-gen en_US.UTF-8
|
||||
localedef -i en_US -f UTF-8 en_US.UTF-8
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export LANG="en_US.UTF-8"
|
||||
export LANGUAGE="en_US.UTF-8"
|
||||
|
|
Loading…
Reference in New Issue