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

Unicode path is not supported #6

Open
fy0 opened this issue Mar 14, 2022 · 2 comments
Open

Unicode path is not supported #6

fy0 opened this issue Mar 14, 2022 · 2 comments

Comments

@fy0
Copy link

fy0 commented Mar 14, 2022

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
Copy link
Author

fy0 commented Mar 14, 2022

Caused by go-shlex:

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

@fy0
Copy link
Author

fy0 commented Mar 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant