[Python-checkins] r66502 - python/trunk/Lib/distutils/msvc9compiler.py

mark.hammond python-checkins at python.org
Thu Sep 18 05:51:47 CEST 2008


Author: mark.hammond
Date: Thu Sep 18 05:51:46 2008
New Revision: 66502
Log:
avoid putting unicode objects in the environment causing 
later test failures. As discussed on #python-dev
Modified:
 python/trunk/Lib/distutils/msvc9compiler.py
Modified: python/trunk/Lib/distutils/msvc9compiler.py
==============================================================================
--- python/trunk/Lib/distutils/msvc9compiler.py	(original)
+++ python/trunk/Lib/distutils/msvc9compiler.py	Thu Sep 18 05:51:46 2008
@@ -357,9 +357,10 @@
 
 vc_env = query_vcvarsall(VERSION, plat_spec)
 
- self.__paths = vc_env['path'].split(os.pathsep)
- os.environ['lib'] = vc_env['lib']
- os.environ['include'] = vc_env['include']
+ # take care to only use strings in the environment.
+ self.__paths = vc_env['path'].encode('mbcs').split(os.pathsep)
+ os.environ['lib'] = vc_env['lib'].encode('mbcs')
+ os.environ['include'] = vc_env['include'].encode('mbcs')
 
 if len(self.__paths) == 0:
 raise DistutilsPlatformError("Python was built with %s, "


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /