[Python-checkins] CVS: python/dist/src/Lib/distutils msvccompiler.py,1.43,1.43.6.1
Michael Hudson
mwh@users.sourceforge.net
Wed, 06 Feb 2002 09:09:20 -0800
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv6766/Lib/distutils
Modified Files:
Tag: release22-maint
msvccompiler.py
Log Message:
Backport loewis' checkin of revision 1.44:
Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate.
(apparently 1.5.2 compatibility is still a goal for distutils, but
I'll wait until that gets amended on the trunk...)
Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.43
retrieving revision 1.43.6.1
diff -C2 -d -r1.43 -r1.43.6.1
*** msvccompiler.py 2001/12/06 20:51:35 1.43
--- msvccompiler.py 2002/02/06 17:09:18 1.43.6.1
***************
*** 118,121 ****
--- 118,125 ----
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)