mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
Fix #883 segfault if locale is not using UTF-8 encoding
This commit is contained in:
parent
c3e7a78a70
commit
2023fac5c5
2 changed files with 6 additions and 0 deletions
|
@ -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) ===
|
=== Deluge 1.1.6 - (06 April 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix udp trackers being classified as DHT source
|
* Fix udp trackers being classified as DHT source
|
||||||
|
|
|
@ -138,6 +138,8 @@ class GtkUI:
|
||||||
gettext.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
gettext.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||||
gettext.textdomain("deluge")
|
gettext.textdomain("deluge")
|
||||||
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
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:
|
except Exception, e:
|
||||||
log.error("Unable to initialize gettext/locale!")
|
log.error("Unable to initialize gettext/locale!")
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue