From 7dd1e295cad8b729a29a8ae8a144afd19ceeb94c Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 20 May 2015 16:31:26 +0200 Subject: [PATCH] re-add the encoding parameter to initdb. --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index 6bcac842..0035628f 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -95,7 +95,7 @@ class Postgresql: return not os.path.exists(self.data_dir) or os.listdir(self.data_dir) == [] def initialize(self): - if os.system(self._pg_ctl + ' initdb') == 0: + if os.system(self._pg_ctl + ' initdb --encoding=UTF8') == 0: self.write_pg_hba() return True