meson: ensure python script is run in utf8 env

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-11-09 14:05:01 +00:00
parent 2a917e6756
commit 09a221c085

View File

@ -703,7 +703,7 @@ endforeach
foreach data : virt_daemon_confs
capitalize_args = [ '-c', 'print("@0@".capitalize())'.format(data['name']) ]
name_uc = run_command(python3_prog, capitalize_args, check: true).stdout().strip()
name_uc = run_command(python3_prog, capitalize_args, check: true, env: runutf8).stdout().strip()
daemon_conf = configuration_data()
daemon_conf.set('runstatedir', runstatedir)
daemon_conf.set('sbindir', sbindir)