Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate.

This commit is contained in:
Martin v. Löwis 2002-01-29 10:23:42 +00:00
parent 2d7bb3fa66
commit 9635d0bd1f
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ def get_msvc_paths (path, version='6.0', platform='x86'):
if string.upper(p) == path:
V = string.split(v,';')
for v in V:
try:
v = v.encode("mbcs")
except UnicodeError:
pass
if v == '' or v in L: continue
L.append(v)
break