summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorRyan Goulden <percontation@gmail.com>2014-03-13 23:16:18 -0400
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-03-14 22:10:22 +0100
commit3160182a7bd24cd236cdae09618d051be649b0f6 (patch)
tree80a3f546f71ba342cf15a6b0b55b40a6685b7b14 /waftools
parent5e698a7b39cd8cd4549014421521addcd28761c1 (diff)
downloadmpv-3160182a7bd24cd236cdae09618d051be649b0f6.tar.bz2
mpv-3160182a7bd24cd236cdae09618d051be649b0f6.tar.xz
build: fix unicode handling of the version string
Don't pass unicode types to waf ENV. As per https://code.google.com/p/waf/issues/detail?id=1420 This directly fixes the "CFVersion" key in the .app bundle plist.
Diffstat (limited to 'waftools')
-rw-r--r--waftools/generators/headers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/waftools/generators/headers.py b/waftools/generators/headers.py
index 828d61fd57..8c164cca73 100644
--- a/waftools/generators/headers.py
+++ b/waftools/generators/headers.py
@@ -6,7 +6,7 @@ def __get_version__(ctx):
cwd=ctx.srcnode.abspath())
process.wait()
(version, err) = process.communicate()
- return version.strip().decode("utf-8")
+ return version.strip().decode('utf-8').encode('ascii', 'ignore')
def __get_build_date__():
import time