clink
clink copied to clipboard
non‐ASCII characters in path (and thus prompt) confuse clink in Powershell
I use clink in Powershell and it seems to work well. I navigated to a directory with non‐ASCII characters in its name ('saṁskr̥tam'), and tab-completion stopped working. The FAQ mentions some tricks clink does to read the Powershell prompt, so maybe that code is acting up?
clink in cmd.exe works fine.
As Powershell doesn't change the process' active directory like cmd.exe does when navigating around using "cd", Clink runs a regular expression on the prompt to extract the path (in powershell.lua). Looks like Lua's ".*" doesn't work with UTF8 strings.
Jumped the gun there. Lua's fine - it is Clink that needs to convert UTF8 strings from Lua where appropriate.