You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for specifying response file encoding (#15426)
* Add support for specifying response file encoding using the suffix of the response file name, and autodetect the response file encoding using the suffix of the response file name if one is specified there.
* Update Changelog
* Adjust test to verify locale.getpreferredencoding()
* Update ChangeLog
* Improve comments
* Update comment
* Relocate comment
* Update Changelog
* Add test to windows config
except (ValueError, LookupError): # UnicodeDecodeError is a subclass of ValueError, and Python raises either a ValueError or a UnicodeDecodeError on decode errors. LookupError is raised if guessed encoding is not an encoding.
97
+
ifDEBUG:
98
+
logging.warning(f'Failed to parse response file {response_filename} with guessed encoding "{guessed_encoding}". Trying default system encoding...')
99
+
# If that fails, try with the Python default locale.getpreferredencoding()
0 commit comments