On Lucid Lynx (amd64), it also requires unsetting $LANGUAGE (besides unsetting $LANG). The following works:
ubuntu@lucid-amd64:~$ echo $LANG $LANGUAGE pt_PT.UTF-8 pt_PT:pt:en ubuntu@lucid-amd64:~$ export LANG=C ubuntu@lucid-amd64:~$ export LANGUAGE=en ubuntu@lucid-amd64:~$ duplicity --help ... -- 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/849069 Title: 'duplicity --help' crashes with UnicodeDecodeError Status in “duplicity” package in Ubuntu: Fix Released Bug description: On a localized system (german), "duplicity --help" crashes: Traceback (most recent call last): File "/usr/bin/duplicity", line 1359, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 1342, in with_tempdir fn() File "/usr/bin/duplicity", line 1202, in main action = commandline.ProcessCommandLine(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 918, in ProcessCommandLine args = parse_cmdline_options(cmdline_list) File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 484, in parse_cmdline_options (options, args) = parser.parse_args() File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib/python2.7/optparse.py", line 1439, in _process_args self._process_long_opt(rargs, values) File "/usr/lib/python2.7/optparse.py", line 1514, in _process_long_opt option.process(opt, value, values, self) File "/usr/lib/python2.7/optparse.py", line 788, in process self.action, self.dest, opt, value, values, parser) File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 170, in take_action self, action, dest, opt, value, values, parser) File "/usr/lib/python2.7/optparse.py", line 810, in take_action parser.print_help() File "/usr/lib/python2.7/optparse.py", line 1669, in print_help file.write(self.format_help().encode(encoding, "replace")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2114: ordinal not in range(128) Running it with "LANG=C" works. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: duplicity 0.6.15-0ubuntu2 ProcVersionSignature: Ubuntu 3.0.0-11.17-generic-pae 3.0.4 Uname: Linux 3.0.0-11-generic-pae i686 ApportVersion: 1.22.1-0ubuntu2 Architecture: i386 Date: Tue Sep 13 16:57:42 2011 InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901) ProcEnviron: PATH=(custom, no user) LANG=de_DE.UTF-8 SHELL=/bin/bash SourcePackage: duplicity UpgradeStatus: Upgraded to oneiric on 2011-09-13 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/849069/+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