3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-09 12:50:32 +00:00

fix for string decoding in build scripts

This commit is contained in:
Christoph M. Wintersteiger 2015-11-14 15:06:55 +00:00
parent 2277a52d80
commit 639dfc4b30
2 changed files with 11 additions and 2 deletions

View file

@ -90,7 +90,12 @@ FPMATH="Default"
FPMATH_FLAGS="-mfpmath=sse -msse -msse2"
def check_output(cmd):
return (subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]).decode(sys.stdout.encoding).rstrip('\r\n')
out = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
if out != None:
enc = sys.stdout.encoding
if enc != None: out.decode(enc).rstrip('\r\n')
else: out.rstrip('\r\n')
else: ""
def git_hash():
try: