Fix encoding in python version file generator

This commit is contained in:
Martin Jaeger
2019-10-08 15:15:29 +02:00
parent 3fc395d333
commit 4c2e05a9a1
+1 -1
View File
@@ -15,5 +15,5 @@ f.write("/* Auto-generated file with git commit hash to be included by C code\n"
f.write(" * Do not change this file manually!\n")
f.write(" */\n")
f.write("\n")
f.write('#define COMMIT_HASH "' + commit_hash + '"\n')
f.write('#define COMMIT_HASH "' + commit_hash.decode('utf-8') + '"\n')
f.close