openbsd-ports/x11/awn/patches/patch-bindings_python___init___py_in

24 lines
677 B
Plaintext

$OpenBSD: patch-bindings_python___init___py_in,v 1.1 2011/09/22 13:20:37 landry Exp $
--- bindings/python/__init__.py.in.orig Sun Apr 11 00:09:39 2010
+++ bindings/python/__init__.py.in Wed Sep 21 11:46:13 2011
@@ -20,7 +20,7 @@
import sys
from gettext import gettext as _
-import locale
+import gettext
import getopt
# load the required modules:
@@ -43,7 +43,9 @@ panel_id = 0
# i18n support
LOCALEDIR = '@LOCALEDIR@'
TEXTDOMAIN = '@GETTEXT_PACKAGE@'
-locale.bindtextdomain(TEXTDOMAIN, LOCALEDIR)
+gettext.bindtextdomain(TEXTDOMAIN, LOCALEDIR)
+gettext.textdomain(TEXTDOMAIN)
+gettext.bind_textdomain_codeset(TEXTDOMAIN, "UTF-8")
def init(argv):
global uid