=== modified file 'debian/changelog'
--- debian/changelog	2009-08-28 10:10:44 +0000
+++ debian/changelog	2010-09-02 00:18:41 +0000
@@ -1,3 +1,11 @@
+pyroom (0.4.1-2ubuntu0.1) lucid-proposed; urgency=low
+
+  * debian/patches:
+    + Added patch to fix crash when LANGUAGE is set. Thanks to Jakub Wilk
+      <jwilk@debian.org> for patch (LP: #367990)
+
+ -- Philip Muskovac <yofel@gmx.net>  Thu, 02 Sep 2010 02:02:38 +0200
+
 pyroom (0.4.1-2) unstable; urgency=low
 
   * Added debian/README.source file

=== modified file 'debian/patches/00list'
--- debian/patches/00list	2009-04-18 11:51:07 +0000
+++ debian/patches/00list	2010-09-02 00:18:41 +0000
@@ -1,2 +1,3 @@
 02_setup_file_fix.dpatch
 03_locales_installation.dpatch
+04_LANGUAGE_set_fix_584478.dpatch

=== added file 'debian/patches/04_LANGUAGE_set_fix_584478.dpatch'
--- debian/patches/04_LANGUAGE_set_fix_584478.dpatch	1970-01-01 00:00:00 +0000
+++ debian/patches/04_LANGUAGE_set_fix_584478.dpatch	2010-09-02 00:18:41 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## 04_LANGUAGE_set_fix_584478.dpatch by Jakub Wilk <jwilk@debian.org>
+##
+## DP: Fix crash when LANGUAGE is set.
+
+@DPATCH@
+diff -urNad pyroom-0.4.1.orig/PyRoom/__init__.py pyroom-0.4.1/PyRoom/__init__.py
+--- pyroom-0.4.1.orig/PyRoom/__init__.py     2010-09-02 01:38:25.000000000 +0200
++++ pyroom-0.4.1/PyRoom/__init__.py          2010-09-02 01:44:25.000000000 +0200
+@@ -23,7 +23,7 @@
+     languages_used = [lc]
+ lang_in_env = os.environ.get('LANGUAGE', None)
+ if lang_in_env:
+-    languages_used.append(lang_in_env.split())
++    languages_used += lang_in_env.split()
+ 
+ for module in gettext, glade:
+     module.bindtextdomain(GETTEXT_DOMAIN, LOCALE_PATH)

