Force utf8 locale for EdgeDB cluster
@@ -96,7 +96,10 @@ def run_server(args):
if cluster_status == 'not-initialized':
logger.info('Initializing database cluster in %s', args.data_dir)
- initdb_output = cluster.init(username='postgres')
+ initdb_output = cluster.init(**{
+ 'username': 'postgres',
+ 'locale': 'c.utf8',
+ })
for line in initdb_output.splitlines():
logger.debug('initdb: %s', line)
cluster.reset_hba()
