Thanks for answer.

> because Lua only uses ASCII C strings

Lua may store within string any binary data including zeros in between.

> and the strings will be converted as they're 
> passed between Lua and wxWidgets

Strings will be converted from current codepage to Unicode?
In this case it is not really make sense - still have only-one-codepage
limitation.

LuaCom module uses another approach - it converts all strings from UTF-8
to Windows wide-char and back on the fly.

>From http://docs.wxwidgets.org/trunk/overview_unicode.html
>> Since wxWidgets 3.0 Unicode support is always enabled

wxWidget 3.0 gives to developer a full freedom to use any encoding:
- codepage (when passing char*)
- wide char (when passing wchar_t*)
- UTF-8 (when using FromUTF8(char*) )

What are you planning for this part?
I would advocate UTF-8 string encoding for Lua binding.
Disadvantages:
- Yes, it will have some performance penalty on Windows, but I don't see
how to use wide chars from Lua anyway.
Advantages:
- Sources will be portable
- Support ANY national characters
- No performance penalty on Linux - UTF-8 is internal string
representation

Regards
Alexander Altshuler



-----Original Message-----
From: John Labenski [mailto:jlaben...@gmail.com] 
Sent: Tuesday, August 25, 2009 4:25 PM
To: wxlua-users@lists.sourceforge.net
Subject: Re: [wxlua-users] wxWidget 3.0 etc

On Tue, Aug 25, 2009 at 5:36 AM, Alexander Altshuler<a...@kaluga.ru>
wrote:
>
> I have two questions both related Unicode support in wxLua:
>
> 1. Are current Windows binaries compiled with Unicode support?

No, because Lua only uses ASCII C strings, but you can build it with
wxWidgets unicode support and the strings will be converted as they're
passed between Lua and wxWidgets. I'm not sure that you get any
advantage by building wxWidgets in unicode mode, but you do get a
performance penalty doing the translation.

> 2. Are there any plans to support wxWidget 3.0?

Yes, but the binding generator should be completely rewritten to take
advantage of the interface files that they use to generate the docs.
This will make it easier to follow changes in wxWidgets in the future.
I have to immediate plans to do this, but it will be done.

http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/interface/wx/

Regards,
    John

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.65/2322 - Release Date:
08/24/09 12:55:00



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to