Author: andar

Revision: 5050

Log:
        Fix #883 segfault if locale is not using UTF-8 encoding

Diff:
Modified: branches/1.1.0_RC/ChangeLog
===================================================================
--- branches/1.1.0_RC/ChangeLog 2009-04-09 09:23:14 UTC (rev 5049)
+++ branches/1.1.0_RC/ChangeLog 2009-04-09 16:40:52 UTC (rev 5050)
@@ -1,3 +1,7 @@
+=== Deluge 1.1.7 - (In Development) ===
+==== GtkUI ====
+  * Fix #883 segfault if locale is not using UTF-8 encoding
+
 === Deluge 1.1.6 - (06 April 2009) ===
 ==== Core ====
   * Fix udp trackers being classified as DHT source

Modified: branches/1.1.0_RC/deluge/ui/gtkui/gtkui.py
===================================================================
--- branches/1.1.0_RC/deluge/ui/gtkui/gtkui.py  2009-04-09 09:23:14 UTC (rev 
5049)
+++ branches/1.1.0_RC/deluge/ui/gtkui/gtkui.py  2009-04-09 16:40:52 UTC (rev 
5050)
@@ -138,6 +138,8 @@
             gettext.bindtextdomain("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
             gettext.textdomain("deluge")
             gettext.install("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
+            gtk.glade.bindtextdomain("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
+            gtk.glade.textdomain("deluge")
         except Exception, e:
             log.error("Unable to initialize gettext/locale!")
             log.exception(e)

Modified: trunk/deluge/ui/gtkui/gtkui.py
===================================================================
--- trunk/deluge/ui/gtkui/gtkui.py      2009-04-09 09:23:14 UTC (rev 5049)
+++ trunk/deluge/ui/gtkui/gtkui.py      2009-04-09 16:40:52 UTC (rev 5050)
@@ -121,6 +121,8 @@
             gettext.bindtextdomain("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
             gettext.textdomain("deluge")
             gettext.install("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
+            gtk.glade.bindtextdomain("deluge", 
pkg_resources.resource_filename("deluge", "i18n"))
+            gtk.glade.textdomain("deluge")
         except Exception, e:
             log.error("Unable to initialize gettext/locale!")
             log.exception(e)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to