ahkscript / SublimeAutoHotkey

AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.
The Unlicense
207 stars 43 forks source link

Ctrl+B doesn't support file path that containing Chinese characters #38

Closed tmplinshi closed 3 years ago

tmplinshi commented 7 years ago

Console Log:

Running D:\code\AutoHotkey\AutoHotkey.exe /ErrorStdOut D:\Desktop\测试.ahk Traceback (most recent call last): File ".\sublimeplugin.py", line 337, in run File ".\exec.py", line 154, in run File ".\exec.py", line 48, in init File ".\subprocess.py", line 633, in init File ".\subprocess.py", line 842, in _execute_child UnicodeEncodeError: 'ascii' codec can't encode characters in position 58-59: ordinal not in range(128)

Tested on Sublime Text 2, Windows 10 x64.

robertcollier4 commented 5 years ago

Curious, does this same file work with Ctrl+Shift+B Ahk2Exe? Ctrl+Shift+B is not using "file_regex" argument of run_command(exec). Perhaps if we remove the "file_regex" it would work then?

self.window.run_command("exec", {"cmd": cmd, "file_regex": regex})
self.window.run_command("exec", {"cmd": cmd})
joedf commented 4 years ago

What's the status of this issue?

tmplinshi commented 3 years ago

Ctrl+Shift+B has the same issue on Sublime Text 2.

Sublime Text 3 doesn't have this issue.