I thought being hit by this bug while having the same 'ascii' codec error message traing to restore a succesfully backed up file with accented characters in it's name. However it proved to be a locale related problem I discovered while chasing an apparently unrelated issue of having English menu items instead of French ones in another package (found in http://doc.ubuntu-fr.org/cinelerra). For me the following actions solved the duplicity file naming issue: 1. Add the following line in /var/lib/locales/supported.d/local : fr_CH.UTF-8 UTF-8 2. Reconfigure the locales sudo dpkg-reconfigure locales
Now th subject file is successfully restored. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to duplicity in Ubuntu. https://bugs.launchpad.net/bugs/1356548 Title: Duplicity restore fails with UTF-8 chars in --file-to-restore Status in Duplicity: Fix Released Status in duplicity package in Ubuntu: Fix Released Bug description: Under Ubuntu 14.04 64bits, duplicity 0.6.23-1ubuntu4.1 To reproduce the issue: 1) Create a backup including non-ASCII characters pathname, e.g., "data/Thèse" for instance 2) Try a selective restore of the backup : duplicity --file-to-restore data/Thèse file:///home/user/Sauvegardes test/ 3) Crash : Traceback (most recent call last): File "/usr/bin/duplicity", line 1494, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 1488, in with_tempdir fn() File "/usr/bin/duplicity", line 1337, in main do_backup(action) File "/usr/bin/duplicity", line 1422, in do_backup restore(col_stats) File "/usr/bin/duplicity", line 700, in restore % (globals.restore_dir,), UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1356548/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp