procs icon indicating copy to clipboard operation
procs copied to clipboard

Unicode path is not supported

Open fy0 opened this issue 2 years ago • 2 comments

exePath, _ := filepath.Abs(filepath.Join(wd, "file.exe"))
p := procs.NewProcess(exePath+ " faststart")
err := p.Run()

path:

D:/测试/main.exe

program crashed with output:

Uknown rune: 27979

fy0 avatar Mar 14 '22 10:03 fy0

Caused by go-shlex:

	cmd := "D:\\codes\\测试\\test.exe asdasd"
	fmt.Println(shlex.Split((cmd)))

fy0 avatar Mar 14 '22 10:03 fy0

https://github.com/fyrchik/go-shlex

fy0 avatar Mar 14 '22 10:03 fy0