On Tue, Apr 17, 2012 at 11:52 PM, strawman <straw...@lavabit.com> wrote:
> With a Unicode build of wxMSW and wxLua, trying to access any string
> containing multibyte characters (e.g. with wxTextCtrl::GetValue) returns
> nil.  The same issue is present in the wxLua editor; if any multibyte
> characters are in the buffer when a script is saved, the saved file is 0
> bytes in length, and running the script silently fails.
>
> Is this a bug (or an issue with my build), or is there some specific way
> to correctly handle multibyte characters?

What version of wxWidgets are you using?  2.8 or 2.9

I have not done much with multibyte chars other than try to convert
them to and from Lua's 8 bit strings. There was some work done on this
years ago and it should still work, but of course the limitation is
that Lua itself is not multibyte. wxWidgets 2.9 uses UTF8 for it's
strings while 2.8 used UTF16, if I remember correctly, for the MSW
Unicode builds.

What is the text that you are trying to use?

Regards,
    John

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to