mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Hack for issue #745
This commit is contained in:
parent
21249fa28d
commit
1fa11fe94c
@ -904,8 +904,11 @@ class _GlancesCurses(object):
|
||||
# UTF-8 special tree chars occupy several bytes.
|
||||
# Python 3: strings are strings and bytes are bytes, all is
|
||||
# good.
|
||||
offset = len(u(m['msg']))
|
||||
x += offset
|
||||
try:
|
||||
x += len(u(m['msg']))
|
||||
except UnicodeDecodeError:
|
||||
# Quick and dirty hack for issue #745
|
||||
pass
|
||||
if x > x_max:
|
||||
x_max = x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user