]> granicus.if.org Git - python/commitdiff
make sure split() is called before the encoding
authorTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 11:59:45 +0000 (13:59 +0200)
committerTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 11:59:45 +0000 (13:59 +0200)
Lib/packaging/compiler/msvc9compiler.py

index d30444697b21987b5c731d85885fb99c3d077d93..39b2e8455a0d2f8fe46d55c810c9f4ac2ae89952 100644 (file)
@@ -356,7 +356,7 @@ class MSVCCompiler(CCompiler) :
             vc_env = query_vcvarsall(VERSION, plat_spec)
 
             # take care to only use strings in the environment.
-            self.__paths = vc_env['path'].encode('mbcs').split(os.pathsep)
+            self.__paths = vc_env['path'].split(os.pathsep).encode('mbcs')
             os.environ['lib'] = vc_env['lib'].encode('mbcs')
             os.environ['include'] = vc_env['include'].encode('mbcs')