Commit 58e335f3 authored by Rick van Schijndel's avatar Rick van Schijndel
Browse files

postgresqlTestHook: explicitly set encoding to UTF8

Otherwise it appears to default to ASCII, causing issues with the tests from
libpqxx. It may also affect other use cases where unicode/utf8 characters
are used in tests.

Related to https://github.com/NixOS/nixpkgs/pull/476936 where the tests are enabled
and the issues with the encoding have popped up.
parent 0e5556ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ EOF
    false
  fi
  echo 'initializing postgresql'
  initdb -U postgres
  initdb --encoding=UTF8 -U postgres

  echo "$postgresqlExtraSettings" >>"$PGDATA/postgresql.conf"