From d9fc1b759334287301a6ad3f68ec9b89f5308cea Mon Sep 17 00:00:00 2001 From: David Paleino Date: Mon, 19 Dec 2011 23:04:08 +0100 Subject: [PATCH] Fix bug with unicode-translated locale and wicd-curses --- curses/wicd-curses.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index e5e1326..7b8a5e7 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -146,7 +146,7 @@ def check_for_wireless(iwconfig, wireless_ip, set_status): if not network: return False - network = unicode(network) + network = misc.to_unicode(network) if daemon.GetSignalDisplayType() == 0: strength = wireless.GetCurrentSignalStrength(iwconfig) else: @@ -154,12 +154,12 @@ def check_for_wireless(iwconfig, wireless_ip, set_status): if strength is None: return False - strength = str(strength) - ip = str(wireless_ip) + strength = misc.to_unicode(daemon.FormatSignalForPrinting(strength)) + ip = misc.to_unicode(wireless_ip) set_status(_('Connected to $A at $B (IP: $C)').replace ('$A', network).replace - ('$B', daemon.FormatSignalForPrinting(strength)).replace - ('$C', wireless_ip)) + ('$B', strength).replace + ('$C', ip)) return True