~ubuntu-branches/ubuntu/natty/bleachbit/natty

« back to all changes in this revision

Viewing changes to debian/patches/uncommon_locale

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2009-08-27 07:24:18 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827072418-z3qy0673d183m7h2
Tags: 0.6.2-1ubuntu1
* debian/patches/uncommon_locale:
  - Fix crash on startup with uncommon locales.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix crash on startup with uncommon locales.
 
2
Origin: Upstream
 
3
Forwarded: not-needed
 
4
 
 
5
Index: bleachbit-0.6.2/bleachbit/Common.py
 
6
===================================================================
 
7
--- bleachbit-0.6.2.orig/bleachbit/Common.py    2009-08-27 07:22:57.000000000 +0000
 
8
+++ bleachbit-0.6.2/bleachbit/Common.py 2009-08-27 07:23:39.000000000 +0000
 
9
@@ -26,6 +26,7 @@
 
10
 import locale
 
11
 import os
 
12
 import sys
 
13
+import traceback
 
14
 
 
15
 
 
16
 APP_VERSION = "0.6.2"
 
17
@@ -116,6 +117,8 @@
 
18
     user_locale = locale.getdefaultlocale()[0]
 
19
 except:
 
20
     traceback.print_exc()
 
21
+    user_locale = None
 
22
+
 
23
 if None == user_locale:
 
24
     user_locale = 'en_US'
 
25
     print "warning: No default locale found.  Assuming '%s'" % user_locale