Skip to content

Commit f1a3752

Browse files
committed
Force tmux_command to parse UTF-8 unicode in Python 2
1 parent 67a4885 commit f1a3752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libtmux/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from distutils.version import LooseVersion
1515

1616
from . import exc
17-
from ._compat import console_to_str
17+
from ._compat import console_to_str, text_type
1818

1919
logger = logging.getLogger(__name__)
2020

@@ -195,7 +195,7 @@ def __init__(self, *args, **kwargs):
195195

196196
cmd = [tmux_bin]
197197
cmd += args # add the command arguments to cmd
198-
cmd = [str(c) for c in cmd]
198+
cmd = [text_type(c, encoding='utf_8') for c in cmd]
199199

200200
self.cmd = cmd
201201

0 commit comments

Comments
 (0)