-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--user-data is broken if file contains non-7-bit characters #765
Comments
Running with --debug: 2014-05-05 18:09:36,275 - awscli.clidriver - DEBUG - Exception caught in main() |
I think the "return six.text_type(value)" at the end of argprocess.py should probably be "return six.binary_type(value)" to avoid this error, but I don't know what other code paths use this code. |
Confirmed using command like this:
I looked into this a bit. When When |
Confirmed, taking a look. Thanks for the debug info. |
Read in the file:// contents as text, which is decoded via locale.getpreferredencoding(). This introduces a py2/py3 compat_open so that you can open a file with a encoding argument (not availble in py2's open()).
Read in the file:// contents as text, which is decoded via locale.getpreferredencoding(). This introduces a py2/py3 compat_open so that you can open a file with a encoding argument (not availble in py2's open()).
* unicode-user-data: Fix issue #765 with non ascii characters in user-data
* release-1.3.11: Bumping version to 1.3.11 Update changelog with latest changes Remove arg_types in favor or args Fix issue #765 with non ascii characters in user-data Cast to correct types for list-structure(list-scalar, scalar) Fix Python 3.x issue with CloudTrail Update README to state >= 2.6.5 is required Fix typo in comment
This has been fixed and is now in the 1.3.11 release. Thanks for the report. |
Error message is "'ascii' codec can't decode byte 0x## in position #: ordinal not in range(128)" where the ## and # match the file.
The text was updated successfully, but these errors were encountered: