Crash on save if path contains UTF-8 characters

Bug #1330798 reported by Francis Giraldeau
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kazam Screencaster
New
Undecided
Unassigned

Bug Description

Record a video, then select "save for later", and enter UTF-8 character in the destination file name. The following exception is raised (specifically with "é" that appears with the french local "Capture vidéo 2014-06-16 23:38:09.avi") :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/kazam/frontend/done_recording.py", line 130, in cb_continue_clicked
    shutil.move(self.tempfile, uri)
  File "/usr/lib/python3.4/shutil.py", line 511, in move
    if os.path.isdir(dst):
  File "/usr/lib/python3.4/genericpath.py", line 42, in isdir
    st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 35: ordinal not in range(128)

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Kazam 1.4.4-1 in Ubuntu 14.04 works fine and doesn't crash when I choose "save for later" and enter UTF-8 characters in the destination file name. I've entered these characters as file name:
Capture vidéo ąčęėįšųūž ĄČĘĖĮŠŲŪ„“Ž 2014-06-16 23:38:09.mp4

Francis, which Kazam and operating system version do you use?
I can't reproduce reported issue :)

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

Other bug subscribers

Remote bug watches

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