Fix vc9.0 express issue, misspelling, and add testcase which would have exposed the...
[scons.git] / src / engine / SCons / Tool / MSCommon / vc.py
index b8aae84282e3d1493d4b99c61c8b0ce622304cda..4baa9fd8d1ba8920bb4a2db479d8c8bb5ba51f63 100644 (file)
@@ -138,7 +138,9 @@ _VCVER_TO_PRODUCT_DIR = {
 }
 
 def msvc_version_to_maj_min(msvc_version):
-    t = msvc_version.split(".")
+    msvc_version_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '')
+    
+    t = msvc_version_numeric.split(".")
     if not len(t) == 2:
         raise ValueError("Unrecognized version %s" % msvc_version)
     try: