Phatch can't handle always filenames with unicode and spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
High
|
Stani |
Bug Description
Error 3:Can not apply action Save on image 'éxif ïptc.jpg' in folder:
/home/nadia/
('ascii', 'TIFFOpen: /home/nadia/
Action:{'fields': {'As': u'tif',
'File Name': u'<filename>
'In': u'/home/
'JPEG Quality': u'85',
'JPEG Size Maximum': '0kb',
'JPEG Size Tolerance': '5%',
'PNG Optimize': 'no',
'Show Type Options': 'no',
'TIFF Compression': u'zip',
'label': 'Save'}
Traceback (most recent call last):
File "/home/
photo = action.apply(photo, read_only_settings, cache)
File "/home/
save_
File "/home/
compression
File "/home/
% (input, out, err)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 58: ordinal not in range(128)
*
actionlist: /home/nadia/
Error 0:Can not apply action Save on image 'éxif ïptc.jpg' in folder:
/home/nadia/
'ascii' codec can't encode character u'\xe9' in position 54: ordinal not in range(128)
Action:{'fields': {'As': u'im',
'File Name': u'<filename>
'In': u'/home/
'JPEG Quality': u'85',
'JPEG Size Maximum': '0kb',
'JPEG Size Tolerance': '5%',
'PNG Optimize': 'yes',
'Show Type Options': 'no',
'TIFF Compression': u'<compression>',
'label': 'Save'}
Traceback (most recent call last):
File "/home/
photo = action.apply(photo, read_only_settings, cache)
File "/home/
save_
File "/home/
**options)
File "/home/
save(image, filename, **options)
File "/home/
image.
File "/usr/lib/
save_
File "/usr/lib/
fp.write("Name: %s\r\n" % filename)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 54: ordinal not in range(128)
*
Changed in phatch: | |
importance: | Undecided → High |
milestone: | none → 0.2.7 |
status: | New → Confirmed |
summary: |
- Phatch can't handle unicode sometimes + Phatch can't handle always filenames with unicode and spaces |
Changed in phatch: | |
assignee: | nobody → stani (stani) |
status: | Confirmed → In Progress |
Changed in phatch: | |
status: | Fix Committed → Fix Released |
http:// bazaar. launchpad. net/~stani/ phatch/ trunk/revision/ 1718