Fix #883 segfault if locale is not using UTF-8 encoding
This commit is contained in:
parent
67ee535d09
commit
386ca2fa68
@ -121,6 +121,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…
x
Reference in New Issue
Block a user