From b7326b82fae9f8649bc462ff0a22b616e381d0b4 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 1 Apr 2017 22:03:41 +0200 Subject: [PATCH] Problem with non breaking space in file system name #1065 --- NEWS | 1 + glances/plugins/glances_fs.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ad40efd7..c08687aa 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,7 @@ Bugs corrected: * StatsD export prefix option is ignored (issue #1074) * Some FS and LAN metrics fail to export correctly to StatsD (issue #1068) + * Problem with non breaking space in file system name (issue #1065) Version 2.9.1 ============= diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py index adf415c6..b99bc0bb 100644 --- a/glances/plugins/glances_fs.py +++ b/glances/plugins/glances_fs.py @@ -131,7 +131,8 @@ class Plugin(GlancesPlugin): fs_current = { 'device_name': fs.device, 'fs_type': fs.fstype, - 'mnt_point': fs.mountpoint, + # Manage non breaking space (see issue #1065) + 'mnt_point': unicode(fs.mountpoint, 'utf-8').replace(u'\u00A0', ' '), 'size': fs_usage.total, 'used': fs_usage.used, 'free': fs_usage.free,