[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1.4 with Traditional Chinese
- From: "tjhack" <tjhack@...>
- Date: Mon, 12 Jan 2015 17:29:02 +0800
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
the result is the same is:
外巨t普攻攻擊
--tjhack