From 3a8bb36e287e839214336227dd1d1c869a2b1b44 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 21 May 2015 11:24:05 -0400 Subject: ensure that program version strings are not unicode --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index fcd217cf07..c9c0e41210 100644 --- a/wscript +++ b/wscript @@ -179,8 +179,10 @@ else: MICRO = '0' V = MAJOR + '.' + MINOR + '.' + MICRO -VERSION = V -PROGRAM_VERSION = MAJOR +# Ensure that these are not unicode, which +# can cause odd problems elsewhere +VERSION = V.encode ('ascii', 'ignore') +PROGRAM_VERSION = MAJOR.encode ('ascii', 'ignore') # Mandatory variables top = '.' -- cgit v1.2.3