Added using locale settings to encode wifi ssid. Replace any unknown … #1186

This commit is contained in:
nicolargo 2017-11-14 21:41:25 +01:00
parent 53d180c4a8
commit a47bf1a76b

View File

@ -21,6 +21,7 @@
import operator
from glances.compat import u
from glances.logger import logger
from glances.plugins.glances_plugin import GlancesPlugin
@ -194,7 +195,7 @@ class Plugin(GlancesPlugin):
if len(hotspotname) > ifname_max_width:
hotspotname = '_' + hotspotname[-ifname_max_width + 1:]
# Add the new hotspot to the message
msg = '{:{width}}'.format(hotspotname,
msg = '{:{width}}'.format(u(hotspotname),
width=ifname_max_width)
ret.append(self.curse_add_line(msg))
msg = '{:>7}'.format(i['signal'], width=ifname_max_width)