提交 a47bf1a7 编写于 作者: N nicolargo

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

上级 53d180c4
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册