Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding error with special characters #32

Closed
tony opened this issue Dec 6, 2013 · 3 comments
Closed

Encoding error with special characters #32

tony opened this issue Dec 6, 2013 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tony
Copy link
Member

tony commented Dec 6, 2013

~ ❯ tmux list-panes -a
cpython:1.0: [143x35] [history 0/2000, 0 bytes] %17 (active)
cpython:1.1: [71x20] [history 0/2000, 0 bytes] %18
cpython:1.2: [71x20] [history 0/2000, 0 bytes] %19
cpython:2.0: [143x35] [history 0/2000, 0 bytes] %20 (active)
cpython:2.1: [71x20] [history 0/2000, 0 bytes] %21
cpython:2.2: [71x20] [history 0/2000, 0 bytes] %22
cpython:3.0: [121x19] [history 0/2000, 0 bytes] %23 (active)
cpython:4.0: [143x56] [history 0/2000, 0 bytes] %24 (active)
cpython:5.0: [60x19] [history 0/2000, 0 bytes] %25 (active)
cpython:5.1: [60x19] [history 0/2000, 0 bytes] %26
cpython:6.0: [121x16] [history 0/2000, 0 bytes] %27 (active)
cpython:6.1: [60x2] [history 1/2000, 856 bytes] %28
cpython:6.2: [60x2] [history 1/2000, 856 bytes] %29
cpython:7.0: [121x19] [history 0/2000, 0 bytes] %30 (active)
cpython:8.0: [121x19] [history 0/2000, 0 bytes] %31 (active)
cpython:9.0: [121x19] [history 0/2000, 0 bytes] %32 (active)
hi $ haha/  laa \:1.0: [167x28] [history 328/2000, 229458 bytes] %34
hi $ haha/  laa \:1.1: [167x27] [history 1856/2000, 1402522 bytes] %38 (active)
hi $ haha/  laa \:2.0: [155x56] [history 1/2000, 2018 bytes] %39 (active)
hi hi hi:1.0: [122x50] [history 9/2000, 3700 bytes] %33 (active)
libunihan:1.0: [167x32] [history 0/2000, 0 bytes] %13 (active)
libunihan:1.1: [83x23] [history 91/2000, 56756 bytes] %14
libunihan:1.2: [83x23] [history 1859/2000, 1794150 bytes] %15
libunihan:2.0: [170x39] [history 1/2000, 2018 bytes] %113 (active)
logbook:1.0: [167x56] [history 1/2000, 2354 bytes] %117 (active)
tmuxp:1.0: [143x35] [history 12/2000, 11322 bytes] %105 (active)
tmuxp:1.1: [71x20] [history 1/2000, 968 bytes] %106
tmuxp:1.2: [71x20] [history 444/2000, 314600 bytes] %107
tmuxp:2.0: [122x32] [history 16/2000, 14158 bytes] %108 (active)
tmuxp:2.1: [40x17] [history 8/2000, 3712 bytes] %109
tmuxp:2.2: [40x17] [history 14/2000, 6258 bytes] %110
tmuxp:2.3: [40x17] [history 116/2000, 48644 bytes] %111
tornado:1.0: [167x35] [history 0/2000, 0 bytes] %60
tornado:1.1: [84x20] [history 5/2000, 2726 bytes] %61 (active)
tornado:1.2: [82x20] [history 0/2000, 0 bytes] %62
tornado:2.0: [131x37] [history 0/2000, 0 bytes] %63 (active)
tornado:2.1: [65x18] [history 3/2000, 1392 bytes] %64
tornado:2.2: [65x18] [history 3/2000, 1392 bytes] %65
tornado:3.0: [155x38] [history 0/2000, 0 bytes] %66 (active)
tornado:3.1: [77x17] [history 1/2000, 1094 bytes] %67
tornado:3.2: [77x17] [history 1/2000, 1094 bytes] %68
~tmuxp load /home/tony/.tmuxp/logbook.yaml
load /home/tony/.tmuxp/logbook.yaml
(I) [16:12:08] tmuxp.cli cli.load_workspace():255 Loading /home/tony/.tmuxp/logbook.yaml.
Traceback (most recent call last):
  File "/usr/local/bin/tmuxp", line 9, in <module>
    load_entry_point('tmuxp==0.1.0rc5', 'console_scripts', 'tmuxp')()
  File "/home/tony/workspace/tmuxp/tmuxp/cli.py", line 957, in main
    command_load(args)
  File "/home/tony/workspace/tmuxp/tmuxp/cli.py", line 421, in command_load
    load_workspace(file_cwd, args)
  File "/home/tony/workspace/tmuxp/tmuxp/cli.py", line 277, in load_workspace
    builder.build()
  File "/home/tony/workspace/tmuxp/tmuxp/workspacebuilder.py", line 141, in build
    for p, pconf in self.iter_create_panes(w, wconf):
  File "/home/tony/workspace/tmuxp/tmuxp/workspacebuilder.py", line 225, in iter_create_panes
    p = w.attached_pane()
  File "/home/tony/workspace/tmuxp/tmuxp/window.py", line 404, in attached_pane
    for pane in self._panes:
  File "/home/tony/workspace/tmuxp/tmuxp/window.py", line 430, in _panes
    return self._list_panes()
  File "/home/tony/workspace/tmuxp/tmuxp/window.py", line 416, in _list_panes
    panes = self.server._update_panes()._panes
  File "/home/tony/workspace/tmuxp/tmuxp/server.py", line 287, in _update_panes
    self._list_panes()
  File "/home/tony/workspace/tmuxp/tmuxp/server.py", line 251, in _list_panes
    '-F%s' % ''.join(tmux_formats),     # output
  File "/home/tony/workspace/tmuxp/tmuxp/server.py", line 97, in tmux
    return tmux(*args, **kwargs)
  File "/home/tony/workspace/tmuxp/tmuxp/util.py", line 79, in __init__
    self.stdout = stdout.decode().split('\n')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 3172: ordinal not in range(128)
@tony
Copy link
Member Author

tony commented Dec 6, 2013

Killing the session hi $ haha/ laa \ fixed it.

@ghost ghost assigned tony Dec 6, 2013
@tony
Copy link
Member Author

tony commented Dec 7, 2013

I didn't grab the string like I should have.. keeping open, but creating this alone doesn't recreate the error.

@tony
Copy link
Member Author

tony commented Dec 12, 2013

This especially happens with ncmpcpp and chinese characters on it in a pane in tmux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant