locale: Use C.UTF-8 rather than en_US.UTF-8.

The `en_US.UTF-8` locale may not be configured or generated on all
installs; it also requires that the `locales` package be installed.
If users generate the `en_US.UTF-8` locale without adding it to the
permanent set of system locales, the generated `en_US.UTF-8` stops
working when the `locales` package is updated.

Switch to using `C.UTF-8` in all cases, which is guaranteed to be
installed.

Fixes #15819.
This commit is contained in:
Alex Vandiver
2021-04-30 12:57:25 -07:00
committed by Tim Abbott
parent a9688ceb75
commit eda9ce2364
13 changed files with 34 additions and 44 deletions

View File

@@ -9,8 +9,8 @@ ALTER ROLE zulip SET search_path TO zulip,public;
CREATE DATABASE zulip
OWNER=zulip
ENCODING=UTF8
LC_COLLATE='en_US.UTF-8'
LC_CTYPE='en_US.UTF-8'
LC_COLLATE='C.UTF-8'
LC_CTYPE='C.UTF-8'
TEMPLATE=template0;
\connect zulip
CREATE SCHEMA zulip AUTHORIZATION zulip;