mirror of https://github.com/mpv-player/mpv
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:
parent
5e698a7b39
commit
3160182a7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue