Set encoding to version subprocess for freezing

issue11207
review376661002
This commit is contained in:
Cédric Krier
2022-02-03 22:30:14 +01:00
parent a049e420bd
commit f6e5cbd2ce
+2 -1
View File
@@ -118,7 +118,8 @@ if os.path.exists(ssl_paths.openssl_capath):
(ssl_paths.openssl_capath, os.path.join('etc', 'ssl', 'certs')))
version = Popen(
'python setup.py --version', stdout=PIPE, shell=True).stdout.read()
'python setup.py --version', stdout=PIPE, shell=True, encoding='utf-8'
).stdout.read()
version = version.strip()
setup(name='tryton',