[Iup-users] GetParam have a Bug?
Brought to you by:
scuri
From: 周. <90...@qq...> - 2010-01-17 13:13:52
|
Hi, I'd try to input chinese string in GetParam,but return an error string. Test script : require( "iuplua" ) require( "iupluacontrols" ) pstring = "测试看看吧\n" local ret, pstring = iup.GetParam("测试", nil, "中文: %s\n", pstring) if (ret == 0) then return end iup.Message("系统提示",pstring); if (not iup.MainLoopLevel or iup.MainLoopLevel()==0) then iup.MainLoop() end Try to erase the last char "吧",you can see the return message. |