unsupported locale handling

Bug #1154896 reported by pawciobiel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Crash report can fail if locale configured in system is not recognized by python3, see Bug #1154145

I wonder if the actual failure was because of this traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/generic.py", line 48, in add_info
    if gtk_like and apport.hookutils.in_session_of_problem(report):
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 848, in in_session_of_problem
    locale.setlocale(locale.LC_TIME, orig_ctime)
  File "/usr/lib/python3.3/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

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

Fixed in trunk r2617.

affects: apport → apport (Ubuntu)
Changed in apport (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.9.2-0ubuntu4

---------------
apport (2.9.2-0ubuntu4) raring; urgency=low

  * data/general-hooks/ubuntu-gnome.py: Add "gnome3-ppa" tag if any dependency
    is from the gnome3 PPA.
  * Merge from trunk:
    - hookutils.attach_conffiles(): Fix IOError crash on inaccessible
      conffiles; mark them as '[inaccessible: <reason>]' instead.
      (LP: #1154536)
    - hookutils.in_session_of_problem(): Fix crash when the current locale is
      invalid. (LP: #1154896)
 -- Martin Pitt <email address hidden> Mon, 25 Mar 2013 15:34:02 +0100

Changed in apport (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.