** Also affects: duplicity (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Description changed:

  [Impact]
  When backing up to Ubuntu One, the duplicity Ubuntu One backend will return 
unicode filenames.  This can cause UnicodeDecodeErrors in some locales when 
mixed with duplicity's UTF-8 translated strings.
  
  For example, pt_BR is affected because it uses non-ascii characters.
+ 
+ As for Ubuntu, Quantal and Raring are affected.  Precise and below don't
+ seem to care.
  
  [Test Case]
  sudo apt-get install language-pack-pt-base
  LANGUAGE=pt_BR duplicity --no-encryption /bin u1+http://utf8bug
  
  [Fix]
  In u1backend.py, an ".encode('utf-8')" needs to be added in the list() 
function.  Branch merge coming.
  
  [Exception]
  Traceback (most recent call last):
    File "/usr/bin/duplicity", line 1404, in <module>
      with_tempdir(main)
    File "/usr/bin/duplicity", line 1397, in with_tempdir
      fn()
    File "/usr/bin/duplicity", line 1277, in main
      globals.archive_dir).set_values()
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 691, 
in set_values
      self.get_backup_chains(partials + backend_filename_list)
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 814, 
in get_backup_chains
      map(add_to_sets, filename_list)
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 808, 
in add_to_sets
      log.Debug(_("File %s is not part of a known set; creating new set") % 
(filename,))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: 
ordinal not in range(128)

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

Title:
  UnicodeDecodeError when backing up to Ubuntu One in some locales

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to