From 8060b8b515dced6863f5100dea7f514d97e2aed6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 20 Oct 2005 08:48:19 +0000 Subject: [PATCH] there are problems with IDNA, so I remove it for the moment --- src/config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.py b/src/config.py index baf4ed3fb..787fd36fc 100644 --- a/src/config.py +++ b/src/config.py @@ -1106,7 +1106,7 @@ class AccountModificationWindow: self.xml.get_widget('name_entry').set_text(self.account) jid = gajim.config.get_per('accounts', self.account, 'name') \ + '@' + gajim.config.get_per('accounts', - self.account, 'hostname').decode('idna') + self.account, 'hostname') self.xml.get_widget('jid_entry').set_text(jid) self.xml.get_widget('save_password_checkbutton').set_active( gajim.config.get_per('accounts', self.account, 'savepass')) @@ -1134,10 +1134,10 @@ class AccountModificationWindow: self.xml.get_widget('custom_host_port_checkbutton').set_active( use_custom_host) custom_host = gajim.config.get_per('accounts', self.account, - 'custom_host').decode('idna') + 'custom_host') if not custom_host: custom_host = gajim.config.get_per('accounts', - self.account, 'hostname').decode('idna') + self.account, 'hostname') self.xml.get_widget('custom_host_entry').set_text(custom_host) custom_port = gajim.config.get_per('accounts', self.account, 'custom_port') @@ -1231,7 +1231,7 @@ _('To change the account name, you must be disconnected.')).get_response() config['usessl'] = self.xml.get_widget('use_ssl_checkbutton').get_active() n, hn = jid.split('@') config['name'] = n - config['hostname'] = hn.encode('idna') + config['hostname'] = hn config['use_custom_host'] = self.xml.get_widget( 'custom_host_port_checkbutton').get_active() @@ -1244,7 +1244,7 @@ _('To change the account name, you must be disconnected.')).get_response() return config['custom_port'] = custom_port config['custom_host'] = self.xml.get_widget( - 'custom_host_entry').get_text().decode('utf-8').encode('idna') + 'custom_host_entry').get_text().decode('utf-8') config['keyname'] = self.xml.get_widget('gpg_name_label').get_text().decode('utf-8') if config['keyname'] == '': #no key selected