You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sven A. <me...@sv...> - 2012-06-07 11:21:11
|
John Labenski <jlabenski@...> writes: > > On Tue, May 22, 2012 at 11:58 AM, Sven Andersson <me@...> wrote: > > > > However, I have a quick question regarding how to use it; > > Would it be possible to link the lib statically, and register the wxWidgets > > functionality/bindings directly to my already existing lua_State object? > > Yes. > > See enum wxLuaState_Type and > wxLuaState(lua_State* L, int state_type = wxLUASTATE_GETSTATE) > > use wxLUASTATE_SETSTATE|wxLUASTATE_STATICSTATE|wxLUASTATE_OPENBINDINGS > and don't close the lua_State before destroying the wxLuaState. > > http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/modules/wxlua/include/ wxlstate.h?revision=81&view=markup > > > I would preferably want to distribute my application as one binary, and it > > would be awesome to have wxLua already linked and available in the Lua state > > (since all the application scripts and data also have been "merged" into the > > binary). > > See the app wxLuaFreeze, this is a very basic implementation of this > concept where it simply tries to read a Lua script from the end of the > executable that has been attached to it. > > I recommend that you start from something like wxLuaFreeze instead of > creating the lua_State yourself and then attaching the wxLuaState to > it. You need to get the wxWidgets event loop initialized and the > best/easiest way to do it is with a wxApp derived class instead of a > main(). Otherwise you have to start it by hand in your main() > following the code in modules/luamodule/src which I do not recommend. > > Note that the printing output of wxLuaFreeze is terrible in MSW and > will be switched to how the wxLua app does it using stdout in MSW. > > Regards, > John > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > Just wanted to thank you for the help! Works perfectly! :) I have a quick question regarding licensing; Since we are considering a commercial release sometime in the future, we would like to avoid our code base being forced under the L-GPL license. AFAIK we can accomplish this by linking statically to wxLua (and wxWidgets) and providing object files of our application to comply with the license. In its current form, we are deriving a application class like wxLuaFreeze does, but this does mean our application has to fall under L-GPL licensing, correct? So to continue as planned, we have to take the separate path you explained in your reply, by manually get the wxWidget event loop initialized? Again, many thanks for your feedback! Regards, Sven |
From: Блажнов В. <vbl...@ya...> - 2012-06-07 09:19:08
|
07.06.2012, 08:19, "John Labenski" <jla...@gm...>: > On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <vbl...@ya...> wrote: > >> There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object? > > Oops, there are now in the SVN development version. > > I would like to make a release in the next couple weeks. > > Regards, > John > Thank You, Please, don't forget to add Today() method too ) |
From: John L. <jla...@gm...> - 2012-06-07 04:20:02
|
On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <vbl...@ya...> wrote: > There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object? Oops, there are now in the SVN development version. I would like to make a release in the next couple weeks. Regards, John |
From: Блажнов В. <vbl...@ya...> - 2012-06-05 14:46:35
|
There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object? |
From: SourceForge.net <no...@so...> - 2012-05-27 14:36:45
|
Feature Requests item #3530094, was opened at 2012-05-27 07:36 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3530094&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: luarock Initial Comment: Create luarock to simplify the installation process, please. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3530094&group_id=140042 |
From: SourceForge.net <no...@so...> - 2012-05-25 19:02:33
|
Bugs item #3529818, was opened at 2012-05-25 12:02 Message generated for change (Tracker Item Submitted) made by jcoolxp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3529818&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jeff Solinsky (jcoolxp) Assigned to: Nobody/Anonymous (nobody) Summary: wxGrid function SetCellRenderer crashes Initial Comment: I have a cell that I would like to change the render for in order to do auto wrap. Using the following call works, but then the app crashes when it redraws the cell. grid:SetCellRenderer(0,3,wx.wxGridCellAutoWrapStringRenderer()) I also tried using the wxGridCellStringRenderer() which I believe that cell should be using by default grid:SetCellRenderer(0,3,wx.wxGridCellStringRenderer()) I'm experiencing that both crash equally once the cell is redrawn. Is there something wrong with SetCellRenderer, or am I doing something wrong? Thank you. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3529818&group_id=140042 |
From: John L. <jla...@gm...> - 2012-05-22 17:56:37
|
On Tue, May 22, 2012 at 11:58 AM, Sven Andersson <me...@sv...> wrote: > > However, I have a quick question regarding how to use it; > Would it be possible to link the lib statically, and register the wxWidgets > functionality/bindings directly to my already existing lua_State object? Yes. See enum wxLuaState_Type and wxLuaState(lua_State* L, int state_type = wxLUASTATE_GETSTATE) use wxLUASTATE_SETSTATE|wxLUASTATE_STATICSTATE|wxLUASTATE_OPENBINDINGS and don't close the lua_State before destroying the wxLuaState. http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/modules/wxlua/include/wxlstate.h?revision=81&view=markup > I would preferably want to distribute my application as one binary, and it > would be awesome to have wxLua already linked and available in the Lua state > (since all the application scripts and data also have been "merged" into the > binary). See the app wxLuaFreeze, this is a very basic implementation of this concept where it simply tries to read a Lua script from the end of the executable that has been attached to it. I recommend that you start from something like wxLuaFreeze instead of creating the lua_State yourself and then attaching the wxLuaState to it. You need to get the wxWidgets event loop initialized and the best/easiest way to do it is with a wxApp derived class instead of a main(). Otherwise you have to start it by hand in your main() following the code in modules/luamodule/src which I do not recommend. Note that the printing output of wxLuaFreeze is terrible in MSW and will be switched to how the wxLua app does it using stdout in MSW. Regards, John |
From: Sven A. <me...@sv...> - 2012-05-22 16:20:14
|
Hi! I've been looking into wxLua lately and it really looks like a swell binding lib! However, I have a quick question regarding how to use it; Would it be possible to link the lib statically, and register the wxWidgets functionality/bindings directly to my already existing lua_State object? I would preferably want to distribute my application as one binary, and it would be awesome to have wxLua already linked and available in the Lua state (since all the application scripts and data also have been "merged" into the binary). I have done some research already, but can't seem to figure out if there is some "magical" register_wxlua(lua_State*)... :) It seems you somehow wrap the lua_State in a wxLuaState object? Would it still be possible to use the lib in such a way as described above? Regards, Sven |
From: SourceForge.net <no...@so...> - 2012-05-18 23:55:22
|
Bugs item #3528098, was opened at 2012-05-18 16:55 Message generated for change (Tracker Item Submitted) made by jcoolxp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3528098&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jeff Solinsky (jcoolxp) Assigned to: Nobody/Anonymous (nobody) Summary: using wxGridTable still leaks memory Initial Comment: Using the updated gridtable.wx.wlua example and the latest source from the repository from the examples folder and adding a timer to call ForceRefresh() on the wxGrid every 30ms still causes memory to be leaked. The number reported by collectgarbage"count" will however now remain the same for a long time, but then will double, and this will repeat taking long each time to double. Memory usage from within windows xp goes up slowly, I experienced it appearing to stop at 27,080 K with 13,968.4 being reported from collectgarbage"count", however waiting longer it all of a sudden starting going up again and the number reported by collectgarvage"count" doubled virtually instanly to 27,027.4, with the mem usage in windows task manager continuing to climb. I am attaching the gridtable.wx.wlua example that has only been modified to add the periodic call to ForceRefresh, and every 1000 times ForceRefresh() is called, pop up a message displaying the collectgarbage"count". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3528098&group_id=140042 |
From: Milind G. <mil...@gm...> - 2012-05-18 00:08:08
|
Thanks for the update, Milind On Thu, May 17, 2012 at 1:55 PM, John Labenski <jla...@gm...> wrote: > On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta <mil...@gm...> > wrote: > > Hi, > > Posting the message again to find out if it is possible to watch > value > > of keys inside a table. When I tried that the watch just gives an error > > message saying: "string:Lua:Syntax error during pre-compilation" ? > > Just a question, does everybody just use the debug library to debug > > their code in Lua or is there a good graphical debugger that can help. I > > tried Lua Eclipse, it didn't work for me, cannot make Scite work to > debug in > > Linux but even in windows its debugging is more command line rather than > > graphical. WxLua seemed to be the only solution that was working good but > > then I encountered this problem? > > Sorry about the delay... Yes there is a problem, but also a temporary > fix. Unfortunately the remote debugger expression evaluator does > double duty, a) run code like "a = 1+2" to set a varible in the > debugger Lua state or to get variable values. So, when it finds a '.' > it thinks there is an expression to evaluate not a variable. > > The solution, put a watch on these two things: > "a = MyTable.Key" : should say Ok on the value side > "a" : should be the value of MyTable.Key > > I just have to find the time to separate the functionality of the two > things so they both work. > > Regards, > John > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: John L. <jla...@gm...> - 2012-05-17 20:55:55
|
On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > Posting the message again to find out if it is possible to watch value > of keys inside a table. When I tried that the watch just gives an error > message saying: "string:Lua:Syntax error during pre-compilation" ? > Just a question, does everybody just use the debug library to debug > their code in Lua or is there a good graphical debugger that can help. I > tried Lua Eclipse, it didn't work for me, cannot make Scite work to debug in > Linux but even in windows its debugging is more command line rather than > graphical. WxLua seemed to be the only solution that was working good but > then I encountered this problem? Sorry about the delay... Yes there is a problem, but also a temporary fix. Unfortunately the remote debugger expression evaluator does double duty, a) run code like "a = 1+2" to set a varible in the debugger Lua state or to get variable values. So, when it finds a '.' it thinks there is an expression to evaluate not a variable. The solution, put a watch on these two things: "a = MyTable.Key" : should say Ok on the value side "a" : should be the value of MyTable.Key I just have to find the time to separate the functionality of the two things so they both work. Regards, John |
From: John L. <jla...@gm...> - 2012-05-17 20:37:16
|
> wx.wxDateTime():ParseDate("25 may 2012", wx.wxString_const_iterator()) > > works and returns the same value as IsValid but is a bit overwhelming. Yes, I can simply override it and return two values, [bool success, integer position of error], but the position will only be valid for non-unicode strings. I guess that's better than nothing. I'll look into it tonight. Regards, John ps. Yes the console is a work in progress. I will eventually add it to the bindings so that from within a wxLua program you can show it. |
From: Milind G. <mil...@gm...> - 2012-05-17 20:21:29
|
Thanks, I think using a separate checkbox is the best way to go. I am using lua for windows, I don't know what version that has. Milind On Thu, May 17, 2012 at 12:51 PM, John Labenski <jla...@gm...> wrote: > On Thu, May 17, 2012 at 3:00 PM, Milind Gupta <mil...@gm...> > wrote: > > Hi, > > I have a wxDatePickerCtrl where I set Allow None in the property > > (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked > > the control is grayed out. But with it unchecked if I query the GetValue > I > > do not get a invalid date. I am getting 12/31/1969 which is not invalid. > Am > > I doing something wrong here? > > Is this available in any example? Is it a wxWidgets issue? > > What version of wxLua are you using? The precompiled one on Sourceforge? > > Note that in GTK (Linux) using the samples/picker.wx.lua sample I do > not even see the checkbox. After googling a bit it seems like this is > the case and that people are simply creating their own checkbox, > putting it next to the date picker, and calling Enable() on the date > picker as appropriate. You then query the checkbox to see if the date > is "valid" or not. > > In MSW using wxWidgets 2.9 the control does return an invalid > wxDateTime so it looks like this has been fixed. > > Regards, > John > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: John L. <jla...@gm...> - 2012-05-17 19:51:15
|
On Thu, May 17, 2012 at 3:00 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > I have a wxDatePickerCtrl where I set Allow None in the property > (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked > the control is grayed out. But with it unchecked if I query the GetValue I > do not get a invalid date. I am getting 12/31/1969 which is not invalid. Am > I doing something wrong here? > Is this available in any example? Is it a wxWidgets issue? What version of wxLua are you using? The precompiled one on Sourceforge? Note that in GTK (Linux) using the samples/picker.wx.lua sample I do not even see the checkbox. After googling a bit it seems like this is the case and that people are simply creating their own checkbox, putting it next to the date picker, and calling Enable() on the date picker as appropriate. You then query the checkbox to see if the date is "valid" or not. In MSW using wxWidgets 2.9 the control does return an invalid wxDateTime so it looks like this has been fixed. Regards, John |
From: Milind G. <mil...@gm...> - 2012-05-17 19:00:45
|
Hi, I have a wxDatePickerCtrl where I set Allow None in the property (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked the control is grayed out. But with it unchecked if I query the GetValue I do not get a invalid date. I am getting 12/31/1969 which is not invalid. Am I doing something wrong here? Is this available in any example? Is it a wxWidgets issue? Thanks, Milind |
From: Andre A. <ar...@ki...> - 2012-05-14 13:40:05
|
Andre Arpin <arpin@...> writes: > > Error using ParseDate > > wx.wxDateTime():ParseDate("25 May 2012") > wx.wxDateTime():ParseDate("25 may 2012", wx.wxString_const_iterator()) works and returns the same value as IsValid but is a bit overwhelming. Andre |
From: Andre A. <ar...@ki...> - 2012-05-14 13:11:43
|
Error using ParseDate wx.wxDateTime():ParseDate("25 May 2012") Lua: Error while running chunk E:\lua\tdate.lua:2: wxLua: Expected a 'wxString_const_iterator' for parameter 3, but got a 'no value'. Function called: 'ParseDate(wxDateTime, string)' 01. wxDateTime::ParseDate(wxDateTime(self), string, wxString_const_iterator) stack traceback: [C]: in function 'ParseDate' E:\lua\tdate.lua:2: in main chunk Lua: Error while running chunk I think this should work Andre PS: Note on console copy button: Copy contents to clipboard ... copies the selection to clipboard. |
From: Andre A. <ar...@ki...> - 2012-05-14 00:43:38
|
Hi, This version is much improved over the previous. Particularly like all the work that was done on the console. Thank you Andre |
From: Andre A. <ar...@ki...> - 2012-05-12 17:43:40
|
John Labenski <jlabenski@...> writes: > > On Thu, May 10, 2012 at 8:51 AM, Andre Arpin <arpin@...> wrote: > > Hi, > > > > I am using a batch to make wxLua > > > > MSBuild wxLua.sln /t:build /p:Configuration=Debug > > > > Problem: > > The sln contains some errors that Visual Studio ignores but MSBuild detects. > > What is the error message? Solution file error MSB5009: Error parsing the nested project section in solution file. What is good this problem is gone away. I have no idea why. The new cmake file? The GUID has been added to the registry? 27 odd updates from Microsoft? More good luck then good management. I wish that the incremental link did the same. Andre |
From: SourceForge.net <no...@so...> - 2012-05-11 22:05:20
|
Bugs item #3525976, was opened at 2012-05-11 15:05 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3525976&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: using wxGridTable leaks memory Initial Comment: When using wxLuaGridTable refreshing a wxGrid leaks memory... Here is an example of using a periodic Timer Tick to ForceRefresh() the grid at a relatively high frequency resulting in massive memory leakage. Calling collectgarbage("count") will show a number that is increasing quickly. Please let me know if there is a simple work around. Also using the straight example from the examples folder if you move the cursor back and forth using the left and right arrow keys that will cause the memory to leak as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3525976&group_id=140042 |
From: John L. <jla...@gm...> - 2012-05-10 21:02:54
|
On Thu, May 10, 2012 at 8:51 AM, Andre Arpin <ar...@ki...> wrote: > Hi, > > I am using a batch to make wxLua > > MSBuild wxLua.sln /t:build /p:Configuration=Debug > > Problem: > The sln contains some errors that Visual Studio ignores but MSBuild detects. What is the error message? > Solution: > open the solution in Visual Studio add a file to the solution remove the file > and save the solution. This will fix the problem. > > These is some mismatch between the project being selected in the global section. What does "global section" mean? If you open the sln in Visual Studio and select a project as the "Startup Project" does that help? I use devenv to build and it works ok. Here's the script I use to run it, note that I rerun cmake on it just to be sure. I combine these batch files to have a whole build system for 2.8/2.9/unicode/ansi/debug/release combinations. ------------------------------------------------------------------ @echo off "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" ..\wxLua call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" for /f %%a IN ('dir /b *.sln') do ( devenv %%a /Build Debug 2>&1 | ..\mtee.exe devenv_build_log.txt set /a ERRCOUNT=%ERRCOUNT% + %ERRORLEVEL% ) echo. echo Errors found: %ERRCOUNT% if NOT "%1" == "NOPAUSE" pause EXIT /B %ERRCOUNT% ---------------------------------------------------------------------------- Regards, John |
From: Andre A. <ar...@ki...> - 2012-05-10 16:45:17
|
Andre Arpin <arpin@...> writes: > > example Format\FORMAT~4.LUA is returned by fullName.ShortPath > this is not a utf8 string ~ is 126 > > Format\FORMAT~4.LUA I ran some more test the problem is gone I must go so I will look at it next week. Andre |
From: Andre A. <ar...@ki...> - 2012-05-10 15:32:13
|
John Labenski <jlabenski@...> writes: > It is up to the Lua programmer to know (or check) if a string may > contain multibyte Unicode chars or not before using Lua's string > functions since they assume single byte chars. maybe hard to do: example Format\FORMAT~4.LUA is returned by fullName.ShortPath this is not a utf8 string ~ is 126 Format\FORMAT~4.LUA F 70 o 111 r 114 m 109 a 97 t 116 \ 92 F 70 O 79 R 82 M 77 A 65 T 84 ~ 126 4 52 . 46 L 76 U 85 --------------- so string.match(fullName.ShortPath,'(.*)%.lua') returns nil Andre |
From: Andre A. <ar...@ki...> - 2012-05-10 12:53:27
|
Hi, I am using a batch to make wxLua MSBuild wxLua.sln /t:build /p:Configuration=Debug Problem: The sln contains some errors that Visual Studio ignores but MSBuild detects. Solution: open the solution in Visual Studio add a file to the solution remove the file and save the solution. This will fix the problem. These is some mismatch between the project being selected in the global section. Andre |
From: John L. <jla...@gm...> - 2012-05-10 05:00:20
|
On Wed, May 9, 2012 at 2:45 PM, Andre Arpin <ar...@ki...> wrote: > Hi, > > wxString str = wxString(luastr, wxConvUTF8); > return str.Length()==0 ? wxString(luastr) : str; > > This solution may look crazy but works surprisingly well. > > We have no idea what kind of file has just been read. > Guessing is are only choice. If it is not UTF8 we are in trouble. I don't know what you mean? This is how the conversion is currently done. Lua is assumed to be UTF8 which works normally for regular English ASCII C-strings (I'm sure there's an official name for it, UTF7 I guess). Search for the "lua2wx" and "wx2lua" functions here : http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/modules/wxlua/include/wxlstate.h?revision=72&view=markup > What happen to string.match(string,"%a") in either cases for example? They stop matching once the first multibyte Unicode char is found since it will be > 128 See the description here: http://en.wikipedia.org/wiki/UTF-8 It is up to the Lua programmer to know (or check) if a string may contain multibyte Unicode chars or not before using Lua's string functions since they assume single byte chars. Regards, John ps. On the wxWidgets mailing list they are currently discussing whether they should switch to UTF32 always so you don't have to use iterators since each char is always 4 bytes. The downside is wasted memory, the upside is that each code point (glyph) is a known length making text manipulation much easier. In any case, I believe that wxLua will have to stick to UTF8 so that "regular" C-strings (<128) are able to be handled using the Lua string functions. |