** Description changed:

- Fresh Quantal install.
+ [Impact]
+ When backing up to Ubuntu One, in some locales (at least pt_BR), the 
duplicity Ubuntu One backend will return unicode filenames.  This causes 
UnicodeDecodeErrors when mixed with duplicity's UTF-8 strings.
  
- I just pushed automatic backups slider to ON position, but deja-dup
- doesn't complete due to this error:
+ [Test Case]
+ 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)
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 12.10
- Package: deja-dup 24.0-0ubuntu1
- ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
- Uname: Linux 3.5.0-18-generic x86_64
- ApportVersion: 2.6.1-0ubuntu6
- Architecture: amd64
- Date: Sun Nov 18 16:00:37 2012
- InstallationDate: Installed on 2012-11-17 (0 days ago)
- InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
- MarkForUpload: True
- SourcePackage: deja-dup
- UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

- UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: 
ordinal not in range(128)
+ UnicodeDecodeError when backing up to Ubuntu One in some locales

** Description changed:

  [Impact]
  When backing up to Ubuntu One, in some locales (at least pt_BR), the 
duplicity Ubuntu One backend will return unicode filenames.  This causes 
UnicodeDecodeErrors when mixed with duplicity's UTF-8 strings.
  
  [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,))
+   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)

** Description changed:

  [Impact]
  When backing up to Ubuntu One, in some locales (at least pt_BR), the 
duplicity Ubuntu One backend will return unicode filenames.  This causes 
UnicodeDecodeErrors when mixed with duplicity's UTF-8 strings.
+ 
+ Locales known to be affected:
+ pt_BR
+ 
+ Locales known to not be affected:
+ en_US
+ en_AU
  
  [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)

** Project changed: deja-dup => duplicity

** Package changed: deja-dup (Ubuntu) => duplicity (Ubuntu)

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

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

Status in Duplicity - Bandwidth Efficient Encrypted Backup:
  New
Status in “duplicity” package in Ubuntu:
  Confirmed

Bug description:
  [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.

  [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)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to