re-add the encoding parameter to initdb.

This commit is contained in:
Oleksii Kliukin
2015-05-20 16:31:26 +02:00
parent 086ef4e0b1
commit 7dd1e295ca
+1 -1
View File
@@ -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