lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2015-01-12 16:52 Dirk Laurie<dirk.laurie@gmail.com> wrote:


>But under Windows LUA_USE_READLINE is anyway not defined.
>We must look for something else.

>What happens under Windows if you run the program
>as a script file instead of interactively?

Notice that my script is encoding into cp950,zh_TW.BIG5. I tried this script on my windows with locale set to zh_TW and encoding into cp950:
msg="外功系普攻攻擊"
print(msg)
msg="家族靈穀"
print(msg)

The result is:
C:\Users\tjhack\Desktop>lua test.lua
lua: test.lua:3: unfinished string near '"家族靈?'

Now I set my centos server locale to LANG="zh_TW.BIG5" and try this:
[tjhack@plsyserver ~]$ lua test.lua
lua: test.lua:3: unfinished string near '"家族靈'

The result is same, with 
msg="外功系普攻攻擊"
print(msg)

the result is the same is:
外巨t普攻攻擊


--tjhack