clink icon indicating copy to clipboard operation
clink copied to clipboard

non‐ASCII characters in path (and thus prompt) confuse clink in Powershell

Open deepestblue opened this issue 9 years ago • 3 comments

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.

deepestblue avatar Oct 25 '14 22:10 deepestblue

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.

mridgers avatar Oct 27 '14 23:10 mridgers

Jumped the gun there. Lua's fine - it is Clink that needs to convert UTF8 strings from Lua where appropriate.

mridgers avatar Oct 28 '14 00:10 mridgers

It seems that this issue still occurs. I use Cmder which uses Clink, and it displays paths with non-ASCII characters incorrectly. I opened a ticket on their GitHub repository if you want more information, but to summalize I get the following error message: attempt to call a nil value.

VeryTastyTomato avatar Dec 06 '19 11:12 VeryTastyTomato