summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2017-04-01 22:03:41 +0200
committernicolargo <nicolas@nicolargo.com>2017-04-01 22:03:41 +0200
commitb7326b82fae9f8649bc462ff0a22b616e381d0b4 (patch)
tree395c702198c6c171a62f88d6310e43343f6bec16
parent4a2826669b77d5e7d1cb7a13b315c4a703e90f76 (diff)
Problem with non breaking space in file system name #1065
-rw-r--r--NEWS1
-rw-r--r--glances/plugins/glances_fs.py3
2 files changed, 3 insertions, 1 deletions
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,