Initialize cluster with encoding=UTF8 by default.

This commit is contained in:
Feike Steenbergen
2015-05-18 13:35:43 +02:00
parent f6d168f65e
commit b8ce6794de

View File

@@ -88,7 +88,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 -o --encoding=UTF8') == 0:
self.write_pg_hba()
return True