From bd99052a6fe832db9770b5d5073a16a1b0ed70f6 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 21 Jan 2021 14:42:12 -0500 Subject: [PATCH] tests: create database with the utf-8 locale Otherwise tests may fail with wide character errors. --- tests/set-up.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/set-up.pl b/tests/set-up.pl index d7aa35cc..4fb99a49 100644 --- a/tests/set-up.pl +++ b/tests/set-up.pl @@ -1,5 +1,5 @@ use strict; -system("initdb -D postgres") == 0 or die; -system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die; -system("createdb -p 6433 hydra-test-suite") == 0 or die; +system("initdb -D postgres --locale C.UTF-8 ") == 0 or die; +system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die; +system("createdb -l C.UTF-8 -p 6433 hydra-test-suite") == 0 or die; system("hydra-init") == 0 or die;