summaryrefslogtreecommitdiff
path: root/PCbuild
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-06-02 12:09:13 -0500
committerZachary Ware <zachary.ware@gmail.com>2014-06-02 12:09:13 -0500
commit90441e857d2f0d0224899a328e89fd8d694e45ef (patch)
tree61b2aff88d3ac1062dbab45170170ca67a1dabb3 /PCbuild
parentca3cd004f3fb5c92227f54a0ea5d9f8b0631f330 (diff)
downloadcpython-git-90441e857d2f0d0224899a328e89fd8d694e45ef.tar.gz
Issue #21623: open pyproject.props with an explicit encoding
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py
index dc517813e1..260cbf3d60 100644
--- a/PCbuild/build_ssl.py
+++ b/PCbuild/build_ssl.py
@@ -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)