mirage crashes with non-ASCII file names (Ubuntu 10.04)

Bug #1006902 reported by Ulli Horlacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mirage (Ubuntu)
New
Undecided
Unassigned

Bug Description

mirage crashes when it tries to read a file with non-ASCII file names
(like German Umlauts):

framstag@diaspora:/tmp: mirage xöx.jpg
/usr/lib/python2.6/dist-packages/mirage.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import tempfile, socket, md5, threading
Traceback (most recent call last):
  File "/usr/bin/mirage", line 30, in <module>
    app = mirage.Base()
  File "/usr/lib/python2.6/dist-packages/mirage.py", line 733, in __init__
    self.expand_filelist_and_load_image(args)
  File "/usr/lib/python2.6/dist-packages/mirage.py", line 4233, in expand_filelist_and_load_image
    self.update_title()
  File "/usr/lib/python2.6/dist-packages/mirage.py", line 4390, in update_title
    title = "Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-4: invalid data

framstag@diaspora:/tmp: lsb_release -rd
Description: Ubuntu 10.04.4 LTS
Release: 10.04

framstag@diaspora:/tmp: apt-cache policy mirage
mirage:
  Installed: 0.9.3-5ubuntu1
  Candidate: 0.9.3-5ubuntu1
  Version table:
 *** 0.9.3-5ubuntu1 0
        500 http://de.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

framstag@diaspora:/tmp: ls -l xöx.jpg
-rw-r----- 1 framstag users 53155 2012-05-31 14:45 xöx.jpg

framstag@diaspora:/tmp: ls xöx.jpg | hexdump
 00000000:78 F6 78 2E 6A 70 67 0A
        0:x ö x . j p g \n

framstag@diaspora:/tmp: locale
LANG=en_US.iso885915
LANGUAGE=en_US:en
LC_CTYPE="en_US.iso885915"
LC_NUMERIC="en_US.iso885915"
LC_TIME="en_US.iso885915"
LC_COLLATE="en_US.iso885915"
LC_MONETARY="en_US.iso885915"
LC_MESSAGES="en_US.iso885915"
LC_PAPER="en_US.iso885915"
LC_NAME="en_US.iso885915"
LC_ADDRESS="en_US.iso885915"
LC_TELEPHONE="en_US.iso885915"
LC_MEASUREMENT="en_US.iso885915"
LC_IDENTIFICATION="en_US.iso885915"
LC_ALL=

framstag@diaspora:/tmp: set | grep ^G_
G_BROKEN_FILENAMES=en_US.iso885915
G_FILENAME_ENCODING=@locale

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1006902/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Ulli Horlacher (framstag) wrote :

filed it wrong first (forgot package selection)

affects: ubuntu → mirage (Ubuntu)
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.