On 2/10/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > Andre wrote: > > Hakki Dogusan <[EMAIL PROTECTED]> writes: > > > >> (From my old message. Maybe it works for you too.) > >> > >> Changed lua2wx, wx2lua and wxLuaCharBuffer's ctor as follows: > >> > > > > > > I change lua2wx this way trying to maintain UTF8 support > > > > inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr) > > { > > if (luastr == NULL) return wxEmptyString; // check for NULL > > > > wxString str; > > #if wxUSE_UNICODE > > str = wxString(luastr, wxConvUTF8); > > #else > > str = wxString(wxConvUTF8.cMB2WC(luastr), *wxConvCurrent); > > #endif // wxUSE_UNICODE > > if (str.IsEmpty()) > > str = wxConvertMB2WX(luastr); > > return str; > > } > > > > After reading your message I realize that wx2lua should also be modified. > > Could we all put our changes about this subject? > (I was send some code from other projects using wx) > > Maybe we can reach a common solution and stop > modifying wxLua? > > What do you think?
I think we need some samples to test different cases, even if they're as simple as wx.wxMessageBox("Text in different formats", "Testing XXX", wx.wxOK + wx.wxICON_INFORMATION, wx.NULL) 1) ASCII is already tested in the minimal sample, but maybe add one with >128 chars like é 2) UNICODE lua program file in UTF8,16 ??? 3) ??? The reason why this comes up again and again is that we need a concrete way to reproduce the problem so one fix doesn't break things for someone else. Please attach a simple test file, don't paste it into your email so it doesn't get mangled by my browser. Also state how you built wxLua, unicode or not and how/where it fails. For example, in wxLuaEdit in gtk2, unicode I can display messages with é in them just fine so I cannot understand why it doesn't work for Mario. Thanks, John Labenski ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users