Can't get Rename Preview on Patterns

Bug #349603 reported by Francesco Proietti
2
Affects Status Importance Assigned to Milestone
pyRenamer
New
Undecided
Unassigned

Bug Description

I can't get a renamed file name preview on Patterns, all I get is this error:

<pre>
Traceback (most recent call last):
  File "///usr/lib64/python2.5/site-packages/pyrenamer/pyrenamer.py", line 683, in on_preview_button_clicked
    self.file_selected_model.foreach(self.preview_rename_rows, paths)
  File "///usr/lib64/python2.5/site-packages/pyrenamer/pyrenamer.py", line 482, in preview_rename_rows
    newname, newpath = renamerfilefuncs.rename_using_patterns(newname, newpath, pattern_ini, pattern_end, self.count)
  File "/usr/lib64/python2.5/site-packages/pyrenamer/pyrenamer_filefuncs.py", line 363, in rename_using_patterns
    newname = newname.replace('{dayname}', time.strftime("%A", time.localtime()))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xec in position 6: unexpected end of data
</pre>

If I comment line 363 in pyrenamer_filefuncs.py the Preview gets back.
I think it is related to my locale settings (Italian) and in fact it only happens on some days.

Revision history for this message
Francesco Proietti (francesco-netlabor) wrote :
Revision history for this message
Michael Nagel (nailor) wrote :

it"s a problem with the accented i

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.