[Bug 1069019] Re: [software-properties-gtk] can not delete, enable or modify any software source with non-ASCII characters in the comment

Sami Jaktholm 1069019 at bugs.launchpad.net
Sun Apr 28 10:39:50 UTC 2013


This bug is actually caused by python-apt which tries to open the
sourceslist files with the default encoding.

As the dbus daemon backend is executed in a clean environment, the
default encoding is not the same the system uses - it's the one
hardcoded to python if every detection method fails (and that's not
UTF-8). The backend fails to open files with unicode chars and ignores
the sources inside them.

However, the GUI runs in an user session that has UTF-8 as default
encoding. Thus the frontend is able to read the files and show the
sources in them. When user tries to toggle or edit the sources, the
backend fails to find the entry to toggle (as it was ignored) and
nothing happens (well, backend throws an exception which the frontend
quietly ignores).

So yes, the solution is very trivial: just make python-apt open all
sourceslist files with UTF-8 encoding. However, the tricky part is to
get it to work in both Python 2 and 3...

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1069019

Title:
  [software-properties-gtk] can not delete, enable or modify any
  software source with non-ASCII characters in the comment

Status in “software-properties” package in Ubuntu:
  Triaged

Bug description:
  I've tried to reenable PPA's after upgrading the system, so there is
  no reaction on delete button and no any changes after modifying data
  via modify dialog. I can't even enable a source.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: software-properties-gtk 0.92.9
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Uname: Linux 3.5.0-17-generic i686
  ApportVersion: 2.6.1-0ubuntu4
  Architecture: i386
  Date: Sat Oct 20 16:07:59 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  MarkForUpload: True
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  SourcePackage: software-properties
  UpgradeStatus: Upgraded to quantal on 2012-10-19 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1069019/+subscriptions




More information about the foundations-bugs mailing list