meld crashed with Error in setlocale(): unsupported locale setting

Bug #799721 reported by Matt Joiner
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
meld (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: meld

This probably shouldn't happen.

TEST CASE:
1. open a terminal and run the command:
  $ LC_ALL=unknown meld

Result:
meld crashes with the traceback:
Traceback (most recent call last):
  File "/usr/bin/meld", line 75, in <module>
    locale.setlocale(locale.LC_ALL,'')
  File "/usr/lib/python2.7/locale.py", line 531, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: meld 1.5.1-1
ProcVersionSignature: Ubuntu 3.0-1.2-generic 3.0.0-rc3
Uname: Linux 3.0-1-generic x86_64
Architecture: amd64
Date: Mon Jun 20 23:05:48 2011
ExecutablePath: /usr/bin/meld
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/meld -a --label=pydlnadms.py@61:8485e07dd08b /tmp/thg.Ie2LtI/pydlnadms.1.61/pydlnadms.py --label=pydlnadms.py /home/username/src/pydlnadms/pydlnadms.py
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, user)
 LANG=en_AU
 LC_MESSAGES=en_AU.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/meld', '-a', '--label=pydlnadms.py@61:8485e07dd08b', '/tmp/thg.Ie2LtI/pydlnadms.1.61/pydlnadms.py', '--label=pydlnadms.py', '/home/username/src/pydlnadms/pydlnadms.py']
SourcePackage: meld
Title: meld crashed with Error in setlocale(): unsupported locale setting
UpgradeStatus: Upgraded to oneiric on 2011-06-16 (4 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Matt Joiner (anacrolix) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. Reproducible by setting a non-existent locale. meld should fall back to C instead of crashing. Setting to traiged/medium the workaround being to set the locale to C or an installed locale before launching meld.

Changed in meld (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
visibility: private → public
description: updated
tags: added: testcase
Changed in meld (Ubuntu):
assignee: nobody → Omar Abdallah (bloody-grim)
Changed in meld (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Rolf Leggewie (r0lf) wrote :

This fallback now happens correctly at least in bionic

Changed in meld (Ubuntu):
assignee: Omar Abdallah Shaaban (omars) → nobody
status: In Progress → 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.