apport-qt needs to fix pyqt UTF-8 string handling

Bug #87757 reported by Guillaume Martres
14
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Undecided
Unassigned
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport-qt

When apport-qt is launched, it displays this sort of message:
"Désolé, le programme "bash" a quitté de façon inattendue."

my /etc/environment:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANG="fr_FR.UTF-8"
LANGUAGE="fr_FR:fr:en_GB:en"

ProblemType: Bug
Date: Sun Feb 25 11:19:25 2007
DistroRelease: Ubuntu 7.04
Uname: Linux ubuntu 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
Martin Pitt (pitti) wrote :

I can reproduce this.

Changed in apport:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

<Riddell> pitti: wouldn't entirely surprise me, pyqt has some strange behaviour with unicode strings
<Riddell> pitti: it's entirely fixable though, I just need to copy the code from ubiquity or dist-upgrade tool or whatever

Revision history for this message
Martin Pitt (pitti) wrote :

I think I fixed at least most of the problems (if not all) now. Please let me know if something is still missing in the version that I'll upload soon.

Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.60) feisty; urgency=low
 .
   * gtk/apport-gtk.glade: Reintroduce window titles. Since the crash
     notifications are like alerts, title have been removed recently to comply
     with Gnome HIG standards, but then the user will get 'nameless window'
     buttons in the task bar. Let's have the smaller evil then. (LP: #87164)
   * apport/packaging.py: Add get_architecture() interface for determining the
     architecture of a particular package (which might not match the overall
     system architecture on multiarch-capable systems, e. g. an i386 Firefox
     package installed on amd64).
   * backends/packaging-dpkg.py: Implement get_architecture() and add test
     case.
   * apport/report.py, add_package_info(): Add Architecture: field.
     (LP: #87424)
   * apport/ui.py: Already mark report as seen when we load it, not just in the
     information collection thread. That way, reports will only be shown once
     on systems which have /var/crash mounted noatime, too. (LP: #85809)
   * apport/fileutils.py, mark_report_seen(): If os.utime() fails, and opening
     the report file for reading does not change the atime (happens with
     noatime mount option), don't throw an exception, just delete the report.
     (other aspect of LP: #85809)
   * qt4/apport-qt: Wrap gettext() into an unicode(str, 'UTF-8') call,
     otherwise all non-ASCII unicode strings are broken. (LP: #87757)

Changed in apport:
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in apport:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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