Skip to content

Instantly share code, notes, and snippets.

@thecliguy
Last active May 31, 2018 23:39
Show Gist options
  • Save thecliguy/208a05d814c163b215a07f1205a4cdc7 to your computer and use it in GitHub Desktop.
Save thecliguy/208a05d814c163b215a07f1205a4cdc7 to your computer and use it in GitHub Desktop.
WeeChat - Zero-Width Space (ZWSP)
The bridge bot of #powershell on freenode puts a zero-width space character after the first letter of Slack
nicks, to avoid people who are on both sides of the bridge triggering their own @mention.
Source machine:
* Windows Version: Windows 10 Pro, Version 1709, 16299.431
* Font used in conhost: Consolas (for both OpenSSH on Windows Subsystem for Linux and Win32-OpenSSH)
Target server:
* Ubuntu version: Ubuntu 16.04.4 LTS
* OpenSSH Server version: 7.2p2
Conhost mangles the ZWSP in several different ways when using WeeChat...
* OpenSSH client (7.2p2) on Windows Subsystem for Linux (Ubuntu 16.04.2 LTS):
* With tmux: A space appears between the first and second character in the nick.
* Without tmux: Same behaviour.
* Win32-OpenSSH client on both Command Prompt and PowerShell exhibit the same behaviour:
* With tmux: The first character in the nick appears as an underscore.
* Without tmux: A question mark appears between the first and second character.
wsltty (Mintty as a terminal for Bash on Ubuntu on Windows / WSL) does not attempt to render the ZWSP and thus the nick is
displayed correctly :)
- Font used in Mintty: Consolas
- [ ] Try upgrading the version of Win32-OpenSSH client.
- [ ] Try with Putty???
- [ ] Repeat testing after installing latest Windows 10 April update.
NB: The ZWSP is shown as follows in the 'irc.freenode.#powershell.weechatlog' log file: <200c>
@thecliguy
Copy link
Author

thecliguy commented Oct 9, 2017

OpenSSH on Windows Subsystem for Linux
image

Win32-OpenSSH on Command Prompt

  • With tmux:
    image
  • Without tmux:
    image

OpenSSH on Windows Subsystem for Linux with wsltty as the terminal
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment