Added check for unset locale.

This commit is contained in:
Michael Lazar
2016-09-11 23:05:54 -07:00
parent 20b59d5c31
commit 628bf37c6f
2 changed files with 11 additions and 3 deletions

View File

@@ -331,7 +331,7 @@ class Page(object):
if os.getenv('DISPLAY'):
title += ' - rtv {0}'.format(__version__)
sys.stdout.write('\x1b]2;{0}\x07'.format(title))
sys.stdout.write('\x1b]2;{0}\x07'.format(self.term.clean(title)))
sys.stdout.flush()
if self.reddit.user is not None: