diff --git a/packaging/common/script-templates/script-common.sh b/packaging/common/script-templates/script-common.sh index 529c20124..3c9037c4b 100644 --- a/packaging/common/script-templates/script-common.sh +++ b/packaging/common/script-templates/script-common.sh @@ -1,18 +1,5 @@ -# These can have bad effects on certain commands if set incorrectly. Found -# when investigating why PostgreSQL was not starting. -unset LANG -unset LC_ADDRESS -unset LC_ALL -unset LC_IDENTIFICATION -unset LC_MEASUREMENT -unset LC_MONETARY -unset LC_NAME -unset LC_NUMERIC -unset LC_PAPER -unset LC_TELEPHONE -unset LC_TIME - - +# postgresql docs, https://www.postgresql.org/docs/current/locale.html, recommend using C locale unless otherwise needed +export LC_ALL=C # overrides all other env vars: https://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html # Upgrade detection is a mess. It is often difficult to tell, especially from # the postinstall script, so we use the package-upgrade.txt file to remember. case "$PKG_TYPE" in