fails to load UTF-8 manifests when not in a UTF-8 locale

Bug #1245677 reported by Colin Watson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click-apparmor (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

PackageKit runs its plugins with a very limited environment, which in particular does not include any locale keys. aa-clickhook does not force any particular encoding when opening manifest files, which means that Python assumes the system encoding (ASCII in this situation). This fails when, for example, the package maintainer's name contains non-ASCII characters.

Related branches

Colin Watson (cjwatson)
Changed in click-apparmor (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
Colin Watson (cjwatson)
Changed in click-apparmor (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I finally finished the CI tests for click-apparmor which use pkcon. The tests are setup to run automatically now too. Added a test specifically for this bug since it was difficult to test the failure condition in unittest. Landing ask added-- just waiting on the landing team for upload.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click-apparmor - 0.1.12

---------------
click-apparmor (0.1.12) trusty; urgency=low

  [ Colin Watson ]
  * Treat manifests as UTF-8, even in non-UTF-8 locales (LP: #1245677).
 -- Jamie Strandboge <email address hidden> Mon, 28 Oct 2013 19:33:23 -0700

Changed in click-apparmor (Ubuntu):
status: Fix Committed → Fix Released
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.