]> granicus.if.org Git - python/commitdiff
Issue #21623: open pyproject.props with an explicit encoding
authorZachary Ware <zachary.ware@gmail.com>
Mon, 2 Jun 2014 17:09:13 +0000 (12:09 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 2 Jun 2014 17:09:13 +0000 (12:09 -0500)
PCbuild/build_ssl.py

index dc517813e189ad99fd05cdecc734c034d16e46f5..260cbf3d60c52d057093e731bdcb44f41ea8bbef 100644 (file)
@@ -66,7 +66,7 @@ def find_working_perl(perls):
 # Fetch SSL directory from VC properties
 def get_ssl_dir():
     propfile = (os.path.join(os.path.dirname(__file__), 'pyproject.props'))
-    with open(propfile) as f:
+    with open(propfile, encoding='utf-8-sig') as f:
         m = re.search('openssl-([^<]+)<', f.read())
         return "..\..\openssl-"+m.group(1)