r18281 - in /desktop/experimental/gedit/debian: changelog patches/02_externaltools_locale.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Sat Jan 24 08:12:34 UTC 2009


Author: joss
Date: Sat Jan 24 08:12:34 2009
New Revision: 18281

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=18281
Log:
02_externaltools_locale.patch: new patch. Use LC_MESSAGES to 
determine the current language for the external tools.
Closes: #510572.

Added:
    desktop/experimental/gedit/debian/patches/02_externaltools_locale.patch
Modified:
    desktop/experimental/gedit/debian/changelog

Modified: desktop/experimental/gedit/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gedit/debian/changelog?rev=18281&op=diff
==============================================================================
--- desktop/experimental/gedit/debian/changelog (original)
+++ desktop/experimental/gedit/debian/changelog Sat Jan 24 08:12:34 2009
@@ -1,3 +1,11 @@
+gedit (2.24.2-2) UNRELEASED; urgency=low
+
+  * 02_externaltools_locale.patch: new patch. Use LC_MESSAGES to 
+    determine the current language for the external tools.
+    Closes: #510572.
+
+ -- Josselin Mouette <joss at debian.org>  Sat, 24 Jan 2009 09:11:43 +0100
+
 gedit (2.24.2-1) experimental; urgency=low
 
   * New upstream release.

Added: desktop/experimental/gedit/debian/patches/02_externaltools_locale.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gedit/debian/patches/02_externaltools_locale.patch?rev=18281&op=file
==============================================================================
--- desktop/experimental/gedit/debian/patches/02_externaltools_locale.patch (added)
+++ desktop/experimental/gedit/debian/patches/02_externaltools_locale.patch Sat Jan 24 08:12:34 2009
@@ -1,0 +1,12 @@
+diff -pruN gedit-2.24.2.orig/plugins/externaltools/tools/library.py gedit-2.24.2/plugins/externaltools/tools/library.py
+--- gedit-2.24.2.orig/plugins/externaltools/tools/library.py	2008-11-09 15:59:48.000000000 +0100
++++ gedit-2.24.2/plugins/externaltools/tools/library.py	2009-01-24 09:10:56.128655239 +0100
+@@ -199,7 +199,7 @@ class Tool(object):
+ 
+         fp = file(filename, 'r', 1)
+         in_block = False
+-        lang = locale.getlocale()[0]
++        lang = locale.getlocale(locale.LC_MESSAGES)[0]
+ 
+         for line in fp:
+             if not in_block:




More information about the pkg-gnome-commits mailing list