Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90441e8

Browse files
committed
Issue #21623: open pyproject.props with an explicit encoding
1 parent ca3cd00 commit 90441e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PCbuild/build_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def find_working_perl(perls):
6666
# Fetch SSL directory from VC properties
6767
def get_ssl_dir():
6868
propfile = (os.path.join(os.path.dirname(__file__), 'pyproject.props'))
69-
with open(propfile) as f:
69+
with open(propfile, encoding='utf-8-sig') as f:
7070
m = re.search('openssl-([^<]+)<', f.read())
7171
return "..\..\openssl-"+m.group(1)
7272

0 commit comments

Comments
 (0)