Add support for Visual Studio 2015 and encoding issues

Replace 'touch' command with Python implementation to reduce dependency on cygwin.
This commit is contained in:
DietmarSchwertberger
2015-12-06 21:34:45 +01:00
committed by Robin Dunn
parent 964307cbb7
commit abbf850d56
2 changed files with 7 additions and 8 deletions

View File

@@ -789,7 +789,7 @@ def runcmd(cmd, getOutput=False, echoCmd=True, fatal=True):
if getOutput:
output = sp.stdout.read()
if sys.version_info > (3,):
output = output.decode('utf-8') # TODO: is utf-8 okay here?
output = output.decode('utf-8', 'ignore') # TODO: is utf-8 okay here?
output = output.rstrip()
rval = sp.wait()
@@ -850,6 +850,8 @@ def getVisCVersion():
return '90'
if 'Version 16' in text:
return '100'
if 'Version 19' in text:
return '140'
# TODO: Add more tests to get the other versions...
else:
return 'FIXME'