Commit 90441e85 authored by Zachary Ware's avatar Zachary Ware

Issue #21623: open pyproject.props with an explicit encoding

parent ca3cd004
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment