changeset b604cdba3651 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b604cdba3651
description: don't fail zeroconf with non-ascii hostname
diffstat:
src/common/zeroconf/connection_zeroconf.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 4fcf8fb51017 -r b604cdba3651 src/common/zeroconf/connection_zeroconf.py
--- a/src/common/zeroconf/connection_zeroconf.py Fri Feb 04 23:52:03
2011 +0300
+++ b/src/common/zeroconf/connection_zeroconf.py Sun Feb 06 00:07:46
2011 +0100
@@ -87,8 +87,7 @@
'is_zeroconf', True)
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME,
'use_ft_proxies', False)
- #XXX make sure host is US-ASCII
- self.host = unicode(socket.gethostname())
+ self.host = unicode(socket.gethostname(),
locale.getpreferredencoding())
gajim.config.set_per('accounts', gajim.ZEROCONF_ACC_NAME, 'hostname',
self.host)
self.port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME,
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits