Browse Source

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

pull/224/head
Zachary Ware 12 years ago
parent
commit
90441e857d
  1. 2
      PCbuild/build_ssl.py

2
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)

Loading…
Cancel
Save