Comment 0 for bug 1276296

Revision history for this message
Jonas Schürmann (mazechazer) wrote :

Version: 0.6.23-2
Python 3.3.3/2.7.6
Arch Linux (up-to-date)

This bug occurs since the last update.

When I start a duplicity job, everything is going normal, until it asks for the GPG passphrase.
Instead of printing the German equivalent of "GPG passphrase: " it crashes with the following Traceback:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1489, in <module>
  File "/usr/bin/duplicity", line 1483, in with_tempdir
  File "/usr/bin/duplicity", line 1332, in main
  File "/usr/bin/duplicity", line 1414, in do_backup
    globals.gpg_profile.passphrase = get_passphrase(1, action)
  File "/usr/bin/duplicity", line 168, in get_passphrase
    pass1 = getpass.getpass(_("GnuPG passphrase:")+" ")
  File "/usr/lib/python2.7/", line 71, in unix_getpass
    passwd = _raw_input(prompt, stream, input=input)
  File "/usr/lib/python2.7/", line 128, in _raw_input
    prompt = str(prompt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 10: ordinal not in range(128)

So there is apparently an "ü" in the German translation (I guess in "Schlüssel") which causes a problem in character encoding.

$ export LANG=en_US.UTF-8
Fixes the problem und results in english messages.