add-apt-repository crashed with UnicodeEncodeError in __main__: 'ascii' codec can't encode characters in position 880-887: ordinal not in range(128)

Bug #1041431 reported by kyleabaker on 2012-08-25
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Medium
Colin Watson

Bug Description

Tried running the following command in a terminal..

sudo apt-add-repository ppa:xorg-edgers/ppa

..resulted in:

~$ sudo apt-add-repository ppa:xorg-edgers/ppa
You are about to add the following PPA to your system:
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 140, in <module>
    print(" %s" % (ppa_info["description"] or ""))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 880-887: ordinal not in range(128)

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: software-properties-common 0.91
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic x86_64
ApportVersion: 2.5.1-0ubuntu2
Architecture: amd64
Date: Fri Aug 24 21:56:42 2012
ExecutablePath: /usr/bin/add-apt-repository
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3.2 /usr/bin/add-apt-repository ppa:xorg-edgers/ppa
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:xorg-edgers/ppa']
SourcePackage: software-properties
Title: add-apt-repository crashed with UnicodeEncodeError in __main__: 'ascii' codec can't encode characters in position 880-887: ordinal not in range(128)
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/add-apt-repository", line 140, in <module>
     print(" %s" % (ppa_info["description"] or ""))
 UnicodeEncodeError: 'ascii' codec can't encode characters in position 880-887: ordinal not in range(128)
UpgradeStatus: Upgraded to quantal on 2012-08-23 (1 days ago)
UserGroups:

kyleabaker (kyleabaker) wrote :
tags: removed: need-duplicate-check
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
Robert Roth (evfool) wrote :

Could you please attach the output of the locale command for further investigation?

Changed in software-properties (Ubuntu):
status: New → Incomplete
Colin Watson (cjwatson) wrote :

No need - I see what's going on here.

Changed in software-properties (Ubuntu):
status: Incomplete → Triaged
visibility: private → public
Colin Watson (cjwatson) on 2012-09-17
Changed in software-properties (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.92.5

---------------
software-properties (0.92.5) quantal; urgency=low

  [ Colin Watson ]
  * add-apt-repository:
    - Force output encoding to UTF-8 even in non-UTF-8 locales
      (LP: #1041431).

  [ sampo555 ]
  * Construct the path of a PPA source file properly (LP: #972617, #994515,
    #1018327, #1037916).
 -- Colin Watson <email address hidden> Mon, 17 Sep 2012 14:41:12 +0100

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers