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.
This commit is contained in:
Ryan Goulden 2014-03-13 23:16:18 -04:00 committed by Stefano Pigozzi
parent 5e698a7b39
commit 3160182a7b
1 changed files with 1 additions and 1 deletions

View File

@ -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