apt-add-repository fails to add key for PPA with non-ASCII name

Bug #1768552 reported by Shaun Crampton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
New
Undecided
Unassigned

Bug Description

If the terminal is not configured for a UTF-8 locale, the following command fails:

    # sudo add-apt-repository ppa:cz.nic-labs/bird
     The BIRD Internet Routing Daemon PPA (by upstream & .deb maintainer)
     More info: https://launchpad.net/~cz.nic-labs/+archive/ubuntu/bird
    Press [ENTER] to continue or ctrl-c to cancel adding it

    gpg: keyring `/tmp/tmpsbr85z99/secring.gpg' created
    gpg: keyring `/tmp/tmpsbr85z99/pubring.gpg' created
    gpg: requesting key F9C59A45 from hkp server keyserver.ubuntu.com
    gpg: /tmp/tmpsbr85z99/trustdb.gpg: trustdb created
    gpg: key F9C59A45: public key "Launchpad Datov� schr�nky" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    'ascii' codec can't decode byte 0xc3 in position 86: ordinal not in range(128)

I'd expect it to work, but fail to display the characters that aren't supported.

While I have a workaround, which is to switch locale, the context is that I'm trying to instruct the users of my application on how to install the above PPA and that's a lot more complicated if I have to explain to them how to check the locale and install a UTF-8 version of their locale and switch to it.
---
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
CurrentDesktop: GNOME-Flashback:Unity
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2014-08-28 (1343 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Package: software-properties-common 0.96.20.7
PackageArchitecture: all
ProcVersionSignature: Ubuntu 4.4.0-119.143-generic 4.4.114
Tags: xenial
Uname: Linux 4.4.0-119-generic x86_64
UpgradeStatus: Upgraded to xenial on 2016-08-01 (638 days ago)
UserGroups: adm cdrom dip docker lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Shaun Crampton (fasaxc) wrote : Dependencies.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Shaun Crampton (fasaxc) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Shaun Crampton (fasaxc) wrote : ProcEnviron.txt

apport information

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.