$NetBSD: patch-template.distillery_Makefile.db,v 1.2 2020/04/21 13:06:00 jaapb Exp $ Avoid error with wrongly set locale in template --- template.distillery/Makefile.db.orig 2018-03-09 16:47:43.000000000 +0000 +++ template.distillery/Makefile.db @@ -98,7 +98,7 @@ $(PSQL_DIR): ifeq ($(LOCAL),yes) db-init: $(PSQL_DIR) - $(pg_ctl) initdb -o --encoding=UNICODE -D $(PSQL_DIR) + $(pg_ctl) initdb -o "--encoding=UNICODE --no-locale" -D $(PSQL_DIR) echo unix_socket_directories = \'/tmp\' >> $(PSQL_DIR)/postgresql.conf $(pg_ctl) -o "-p $(DB_PORT)" -D $(PSQL_DIR) -l $(PSQL_LOG) start