Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Aug 13, 2021
1 parent 7848b49 commit 9c91d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gyp/pylib/gyp/easy_xml.py
Expand Up @@ -124,7 +124,7 @@ def WriteXmlIfChanged(content, path, encoding="utf-8", pretty=False,
default_encoding = locale.getdefaultlocale()[1]
if default_encoding and default_encoding.upper() != encoding.upper():
if win32 and sys.version_info < (3, 7):
xml_string = xml_string.decode("cp1251").encode(encoding)
xml_string = xml_string.decode(default_encoding).encode(encoding)
else:
xml_string = xml_string.encode(encoding)

Expand Down

0 comments on commit 9c91d47

Please sign in to comment.