German umlaut "ü" crashes duplicity

Bug #1276296 reported by Jonas Schürmann
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Duplicity
Invalid
Undecided
Unassigned

Bug Description

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>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1483, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1332, in main
    do_backup(action)
  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/getpass.py", line 71, in unix_getpass
    passwd = _raw_input(prompt, stream, input=input)
  File "/usr/lib/python2.7/getpass.py", 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.

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

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

It seems that this bug has been system-related, a few days later everything went fine again.
I'm gonna close this issue

Changed in duplicity:
status: New → Incomplete
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.