[ZeroBrane Studio] Re: Cannot activate a file with chinese path when using ZeroBrane remote debugging

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Wed, 2 Aug 2017 23:12:44 -0700

Can you print `debug.getinfo(1,"S").source` to a file from your test.mcs
script to see what path is reported by the interpreter?
I got the following printout. it's just the correct path.
@C:/Users/Mixwind/Desktop/新建文件夹/test.mcs

I did some tests in this morning:
When I set the working directory to "C:/Users/Mixwind/Desktop/新建文件夹" then
run dofile("test.mcs") from official lua.exe, it worked fine.

By "official lua.exe" do you mean the one included with the IDE or the
one you downloaded from lua.org?

By "worked fine" do you mean that the debugging started as expected
and worked with that file name?

But if I change the "test.mcs" to "测试.mcs" then it prompt
Debugging suspended at 'xB2xE2xCAxD4.mcs:5' (couldn't activate the file).

What does `debug.getinfo(1,"S").source` show in this case?

Also, how do you run the files from the IDE and what do you see in the
Output window?

I tested similar setup and in my case it all works on Windows 8.1, but
mostly because the IDE is using short file names: the path reported by
the Lua interpreter looks like
`@D:\something\something\E728~1\85A1~1.LUA`.

Paul.

Other related posts: