UnicodeEncodeError in st_delete() when object has non-ascii char
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
How to reproduce :
swift post éà
touch /tmp/ç
swift upload --segment-threads 10 --segment-size $((1024*1024)) éà /tmp/ç
jordan@
Traceback (most recent call last):
File "/usr/local/
sys.
File "/opt/stack/
globals(
File "/opt/stack/
output_
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 4: ordinal not in range(128)
Possible cause :
o = r.get('object', '') returns a Unicode object which can not be passed to str.format()
Ugly fix:
if o is not None:
Changed in python-swiftclient: | |
status: | New → Incomplete |
status: | Incomplete → New |
Changed in python-swiftclient: | |
milestone: | none → 2.5.0 |
status: | Fix Committed → Fix Released |
I don't see this error on current master, but that might be related to different terminal settings.
Could you share your terminal settings?