From: Zachary Ware Date: Mon, 2 Jun 2014 17:09:13 +0000 (-0500) Subject: Issue #21623: open pyproject.props with an explicit encoding X-Git-Tag: v3.4.2rc1~460 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90441e857d2f0d0224899a328e89fd8d694e45ef;p=python Issue #21623: open pyproject.props with an explicit encoding --- 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)