File: 03-bind_textdomain_codeset.patch

package info (click to toggle)
alacarte 3.56.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,224 kB
  • sloc: sh: 4,680; python: 1,201; makefile: 188; xml: 73; sed: 39
file content (28 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Matt Kraai <kraai@ftbfs.org>
Date: Tue, 10 Nov 2009 05:25:34 -0800
Subject: Set the character set to UTF-8 since this is what GTK+ expects

Debian #552528
---
 Alacarte/MainWindow.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 403017b..99dfe43 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -24,12 +24,13 @@ from gi.repository import Gtk, GdkPixbuf, Gdk, GMenu
 import sys
 import html
 import os
-import gettext
+import gettext, locale
 import shutil
 
 from Alacarte import config
 gettext.bindtextdomain(config.GETTEXT_PACKAGE, config.localedir)
 gettext.textdomain(config.GETTEXT_PACKAGE)
+locale.bind_textdomain_codeset(config.GETTEXT_PACKAGE,'UTF-8')
 
 _ = gettext.gettext
 from Alacarte.MenuEditor import MenuEditor