-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem with unicode radula output to pipe #13
Comments
I could get rid of this error by adding:
to /usr/bin/radula Now the listing works find, but still can't put a file named "testfile[bracketstest]"
|
Sorry, closed by mistake |
Also without escaping:
|
I found this approach highly discouraged: Instead, setting environment variable PYTHONIOENCODING="UTF-8" fixes the problems |
not for nothing, but radula appears to work ok with Japanese characters ok.
I think what you've hit is an accidental fnmatch pattern. Characters within brackets will match a single character among the set. One workaround is to use another fnmatch pattern (the
|
Thanks |
Using radula ls with a bucket that contains Unicode named objects works fine, but directing it to a pipe results in an error:
radula ls testbucket
works fine, while this doesn't:
radula ls testbucket | grep teststring
Traceback (most recent call last):
File "/usr/bin/radula", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/radula/init.py", line 273, in main
_real_main()
File "/usr/lib/python2.7/site-packages/radula/init.py", line 83, in _real_main
getattr(radu, command)(**vars(args))
File "/usr/lib/python2.7/site-packages/radula/proxy.py", line 139, in ls
return self.keys(**kwargs)
File "/usr/lib/python2.7/site-packages/radula/proxy.py", line 153, in keys
print key
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-4: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: