diff --git a/NEWS b/NEWS index 39ce5848..fc3bc760 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ Bugs corrected: * Crash on startup: KeyError: 'hz_actual_raw' on Raspbian 9.1 #1170 * Add missing mount-observe and system-observe interfaces #1179 * OS specific arguments should be documented and reported #1180 + * 'ascii' codec can't encode character u'\U0001f4a9' in position 4: ordinal not in range(128) #1185 Backward-incompatible changes: diff --git a/README.rst b/README.rst index 2db79e2a..f7f04dfe 100644 --- a/README.rst +++ b/README.rst @@ -20,6 +20,9 @@ Glances - An eye on your system .. image:: https://img.shields.io/scrutinizer/g/nicolargo/glances.svg :target: https://scrutinizer-ci.com/g/nicolargo/glances/ +.. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnicolargo%2Fglances.svg?type=shield + :target: https://app.fossa.io/projects/git%2Bgithub.com%2Fnicolargo%2Fglances?ref=badge_shield + .. image:: https://img.shields.io/badge/Donate-PayPal-green.svg :target: https://www.paypal.me/nicolargo diff --git a/glances/plugins/glances_wifi.py b/glances/plugins/glances_wifi.py index 071bf414..9e2beb05 100644 --- a/glances/plugins/glances_wifi.py +++ b/glances/plugins/glances_wifi.py @@ -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)