Public bug reported:

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

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1006902

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1006902/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to