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: klaas.holwerda <ng...@kl...> - 2014-04-02 06:34:28
|
Hi John, Indeed if out commented, it works okay again. So recursive calls is not the problem it seems, only the assert. Don't know if the m_is_running is very important, but if yes or just handy to have, i think the up/down counter would deal with the situation. Regards, Klaas On 04/02/2014 06:01 AM, John Labenski wrote: > On Sun, Mar 30, 2014 at 7:11 PM, klaas.holwerda <ng...@kl... > <mailto:ng...@kl...>> wrote: > > Hi, > > Recursive calls to RunBuffer() is a problem, gives an assert. > > int wxLuaState::RunBuffer(const char buf[], size_t size, const wxString &name, int nresults) > { > wxCHECK_MSG(Ok(), LUA_ERRRUN, wxT("Invalid wxLuaState")); > wxCHECK_MSG(!M_WXLSTATEDATA->m_wxlStateData->m_is_running, LUA_ERRRUN, wxT("Lua interpreter is > already running")); > > > If you rem these out does it work normally? I think I added the check so people wouldn't forget > that it was running, but there probably is any reason why it wouldn't work |
From: John L. <jla...@gm...> - 2014-04-02 05:02:15
|
On Mon, Mar 17, 2014 at 12:30 AM, Paul K <pau...@ya...> wrote: > Hi John, > > I'd like to come back to this topic; maybe it's something I'm doing > wrong and it's still possible to process those invalid UTF-8 > characters? Any ideas? > > I honestly don't know. Did you try to call wxSTC::AddTextRaw(const char*)? This function does not do any UTF8 conversions before passing the string to Scintilla. Regards, John > On Fri, Feb 21, 2014 at 4:53 PM, Paul K <pau...@ya...> wrote: > > Hi John, > > > >> Yes, note that From8BitData() is static and To8BitData() is not. > > > > Thank you for the prompt change! Unfortunately, it didn't have the > > desired effect for me; maybe I misread wxwidgets documentation. > > > > Let's say I have three invalid UTF-8 characters: string.char(0x80, > > 0x81, 0x82). If I assigned them to a variable u, it has proper length > > (#u == 3). If I try to add them to wxSTC, nothing happens (the length > > of the content doesn't change). > > > > If I use From8BitData(), then I get 6 bytes instead of 3: > > #wx.wxString.From8BitData(string.char(0x80, 0x81, 0x82)) == 6, but > > this looks like "fixed" UTF-8 code. When I add the result to wxSTC, I > > do get 6 bytes of content there, but that's not what I expected: I > > expected three characters displayed with 0x80, 0x81, and 0x82 as their > > codes. > > > > What am I doing wrong? > > > > Paul. > > > > On Wed, Feb 19, 2014 at 9:53 PM, John Labenski <jla...@gm...> > wrote: > >> On Wed, Feb 19, 2014 at 1:27 AM, Paul K <pau...@ya...> wrote: > >>> > >>> > >>> Do we also get To8BitData(), as I may need it to save the data back to > a > >>> file? > >>> > >> > >> Yes, note that From8BitData() is static and To8BitData() is not. > >> > >> Regards, > >> John > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: Paul K <pau...@ya...> - 2014-04-02 04:59:05
|
Hi John, > I'm wondering why you want to create a wxTreeEvent? It was to trigger wxEVT_COMMAND_TREE_ITEM_ACTIVATED event manually: wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED, item_id). > Try using item_id:GetValue(). > Added in SVN. Thank you! Paul. |
From: John L. <jla...@gm...> - 2014-04-02 04:40:22
|
On Fri, Mar 28, 2014 at 3:11 PM, Joshua Jensen <jj...@wo...>wrote: > ----- Original Message ----- > From: John Labenski > Date: 3/28/2014 8:55 AM > > I added wxWebView support a while ago, but forgot to press send on my > > email. Let me know if it works for you. I just did the simplest test > > of creating a frame, a webview child and loaded a page. > Awesome. Can you add your sample to the wxLua distribution for easy out > of box testing? > > I've added it to the controls sample so you can see what events are emitted and when, but this is all the code it takes to get a browser window. f = wx.wxFrame(wx.NULL, -1, "wxWebView!") w = wxwebview.wxWebView.New(f, -1, "http://wxlua.sourceforge.net") f:Show() -John |
From: John L. <jla...@gm...> - 2014-04-02 04:23:57
|
On Mon, Mar 31, 2014 at 4:52 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I'm trying to create wxTreeEvent and ran into unexpected difficulties. > > I'm wondering why you want to create a wxTreeEvent? > I've tried the following (item_id is wxTreeItemId I got from > event:GetItem()): > > 1. wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED, item_id) > > Try using item_id:GetValue(). > got an error saying that the second parameter is a userdata, but needs > to be a number > > 2. Tried to get id from wxTreeItemId, but it doesn't have GetID() even > though the documentation references it > (http://docs.wxwidgets.org/trunk/classwx_tree_item_id.html). > > This is the GetValue() function, there's not much you can do with the void* ptr from GetID() in Lua. > 3. local treeevent = > wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED) > treeevent:SetClientObject(tree:GetItemData(item_id)) > > got an error saying that wxTreeEvent doesn't have SetClientObject. > > Added in SVN. Regards, John |
From: John L. <jla...@gm...> - 2014-04-02 04:01:34
|
On Sun, Mar 30, 2014 at 7:11 PM, klaas.holwerda <ng...@kl...>wrote: > Hi, > > Recursive calls to RunBuffer() is a problem, gives an assert. > > int wxLuaState::RunBuffer(const char buf[], size_t size, const wxString > &name, int nresults) > { > wxCHECK_MSG(Ok(), LUA_ERRRUN, wxT("Invalid wxLuaState")); > wxCHECK_MSG(!M_WXLSTATEDATA->m_wxlStateData->m_is_running, > LUA_ERRRUN, wxT("Lua interpreter is > already running")); > > If you rem these out does it work normally? I think I added the check so people wouldn't forget that it was running, but there probably is any reason why it wouldn't work. John |
From: John L. <jla...@gm...> - 2014-04-02 03:38:52
|
On Sun, Mar 30, 2014 at 6:32 PM, klaas.holwerda <ng...@kl...>wrote: > Hi, > > The internal FindwxWidgets.cmake, should also contains lines like: > > wxbase31${_UCD}${_DBG} > > Updated. else it does not work for current wxWidgets svn. > But even if that produces projects files with Cmake, it does not build, > there are compile errors. > > But for 3.0 it works. > > I'll look into it tomorrow. Thanks, John |
From: Paul K <pau...@ya...> - 2014-03-31 20:52:50
|
Hi John, I'm trying to create wxTreeEvent and ran into unexpected difficulties. I've tried the following (item_id is wxTreeItemId I got from event:GetItem()): 1. wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED, item_id) got an error saying that the second parameter is a userdata, but needs to be a number 2. Tried to get id from wxTreeItemId, but it doesn't have GetID() even though the documentation references it (http://docs.wxwidgets.org/trunk/classwx_tree_item_id.html). 3. local treeevent = wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED) treeevent:SetClientObject(tree:GetItemData(item_id)) got an error saying that wxTreeEvent doesn't have SetClientObject. How do I construct ITEM_ACTIVATED event for a particular item? Thank you. Paul. |
From: klaas.holwerda <ng...@kl...> - 2014-03-30 22:10:34
|
Hi, Recursive calls to RunBuffer() is a problem, gives an assert. int wxLuaState::RunBuffer(const char buf[], size_t size, const wxString &name, int nresults) { wxCHECK_MSG(Ok(), LUA_ERRRUN, wxT("Invalid wxLuaState")); wxCHECK_MSG(!M_WXLSTATEDATA->m_wxlStateData->m_is_running, LUA_ERRRUN, wxT("Lua interpreter is already running")); Maybe a solution could be to make m_running an integer, which is incremented and decremented, as long as > 1, interpreter is running. But maybe it should be done different, still I would like to use the same wxlua state. Recursive happens in lua scripts which define functions to be used inside canvas objects, and are run there using: wxLuaState lst = a2dLuaWP->GetLuaState(); lua_State* L = lst.GetLuaState(); if ( 0 != lst.RunString( m_script ) ) The function is defined like this in the wxLua script. TheObjectAddScript_2 = [[ function XoverX( canobj, x, y, args ) fill = wx.a2dFill( args.Colour ) local childs = canobj:CreateChildObjectList() canobjcirc2 = wx.a2dCircle( 0, 0, 20 ) childs:push_back( canobjcirc2 ) for i = -args.maxX, args.maxX do local y2 if i ~= 0 then y2 = -args.maxY*math.sin(i/16)/(i/16) else y2 = -args.maxY; --sin(x)/x goes to one at zero end -- all relative line = wx.a2dRect( i, 0, 0.1, y2 ) line:SetFill( fill ) childs:push_back( line ) end end ]] -- add the object using the above string as input script canobjAddScript2 = wx.a2dCanvasObjectLua( 350, -450, TheObjectAddScript_2, "XoverX" ) Regards, Klaas |
From: klaas.holwerda <ng...@kl...> - 2014-03-30 21:58:24
|
Hi, The internal FindwxWidgets.cmake, should also contains lines like: wxbase31${_UCD}${_DBG} else it does not work for current wxWidgets svn. But even if that produces projects files with Cmake, it does not build, there are compile errors. But for 3.0 it works. Regards, Klaas |
From: Joshua J. <jj...@wo...> - 2014-03-28 19:12:02
|
----- Original Message ----- From: John Labenski Date: 3/28/2014 8:55 AM > I added wxWebView support a while ago, but forgot to press send on my > email. Let me know if it works for you. I just did the simplest test > of creating a frame, a webview child and loaded a page. Awesome. Can you add your sample to the wxLua distribution for easy out of box testing? Thanks! Josh |
From: John L. <jla...@gm...> - 2014-03-28 14:55:16
|
On Mon, Mar 17, 2014 at 12:36 AM, Paul K <pau...@ya...> wrote: > Hi John, > > >> > I'm looking for a way to provide MacNewFile, MacOpenFiles, and > >> > MacReopenApp methods > >> > (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure > >> > out how to do this in wxlua and don't see this in any of the examples. > > > > They need to be added, it should be doable. > > Do you have plans to include these methods? I'm building the current > version of wxwidgets and would like to include these Mac* methods and > My antique mac is out of commission so I can't do any mac stuff right now, but I do plan to replace the hard drive drive.. > WebView support if available. Thank you! > > I added wxWebView support a while ago, but forgot to press send on my email. Let me know if it works for you. I just did the simplest test of creating a frame, a webview child and loaded a page. -John |
From: Paul K <pau...@ya...> - 2014-03-17 05:00:24
|
Hi John, >> > I'm looking for a way to provide MacNewFile, MacOpenFiles, and >> > MacReopenApp methods >> > (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure >> > out how to do this in wxlua and don't see this in any of the examples. > > They need to be added, it should be doable. Do you have plans to include these methods? I'm building the current version of wxwidgets and would like to include these Mac* methods and WebView support if available. Thank you! Paul |
From: Paul K <pau...@ya...> - 2014-03-17 04:30:41
|
Hi John, I'd like to come back to this topic; maybe it's something I'm doing wrong and it's still possible to process those invalid UTF-8 characters? Any ideas? Paul. On Fri, Feb 21, 2014 at 4:53 PM, Paul K <pau...@ya...> wrote: > Hi John, > >> Yes, note that From8BitData() is static and To8BitData() is not. > > Thank you for the prompt change! Unfortunately, it didn't have the > desired effect for me; maybe I misread wxwidgets documentation. > > Let's say I have three invalid UTF-8 characters: string.char(0x80, > 0x81, 0x82). If I assigned them to a variable u, it has proper length > (#u == 3). If I try to add them to wxSTC, nothing happens (the length > of the content doesn't change). > > If I use From8BitData(), then I get 6 bytes instead of 3: > #wx.wxString.From8BitData(string.char(0x80, 0x81, 0x82)) == 6, but > this looks like "fixed" UTF-8 code. When I add the result to wxSTC, I > do get 6 bytes of content there, but that's not what I expected: I > expected three characters displayed with 0x80, 0x81, and 0x82 as their > codes. > > What am I doing wrong? > > Paul. > > On Wed, Feb 19, 2014 at 9:53 PM, John Labenski <jla...@gm...> wrote: >> On Wed, Feb 19, 2014 at 1:27 AM, Paul K <pau...@ya...> wrote: >>> >>> >>> Do we also get To8BitData(), as I may need it to save the data back to a >>> file? >>> >> >> Yes, note that From8BitData() is static and To8BitData() is not. >> >> Regards, >> John |
From: John L. <jla...@gm...> - 2014-03-12 14:35:29
|
On Tue, Mar 11, 2014 at 5:13 PM, Roy Hinkelman <ro...@gm...> wrote: > > Sure could use some help. > > The wxWidgets install looked to go smoothly with no errors in the log. > BUT, when I tried to run /samples/widgets, nothing happens, and the > terminal goes unresponsive. > > How are you running it? You need to run the app as a "bundle" meaning that you either double click the bundle dir (usually ProgramName.app) or run this on the command line. $ open /path/to/Program.app > I am following the directions here: > http://wxlua.sourceforge.net/docs/install.html , installed in it's own > directory as OSX, debug, unicode build. > > How would I debug this? > > Using gdb if I remember correctly. I don't have a working Mac right now, but I believe that XCode comes with the command line gcc compiler tools and gdb is the debugger for it. > I don't know what logs to look at. The system.log is giving me this for > what it is worth: > > Mar 11 14:04:54 Roys-MacBook-Pro.local Console[394]: CGSCopyDisplayUUID: > Invalid display 0x1a493041 > Mar 11 14:04:54 Roys-MacBook-Pro.local firefox[393]: CGSCopyDisplayUUID: > Invalid display 0x1a493041 > > Don't know about this; do you sometimes use two monitors and the settings are stale or something? Regards, John |
From: Roy H. <ro...@gm...> - 2014-03-11 21:13:55
|
Sure could use some help. The wxWidgets install looked to go smoothly with no errors in the log. BUT, when I tried to run /samples/widgets, nothing happens, and the terminal goes unresponsive. I am following the directions here: http://wxlua.sourceforge.net/docs/install.html , installed in it's own directory as OSX, debug, unicode build. How would I debug this? I don't know what logs to look at. The system.log is giving me this for what it is worth: Mar 11 14:04:54 Roys-MacBook-Pro.local Console[394]: CGSCopyDisplayUUID: Invalid display 0x1a493041 Mar 11 14:04:54 Roys-MacBook-Pro.local firefox[393]: CGSCopyDisplayUUID: Invalid display 0x1a493041 I am a PC based web programmer (PHP, MySql, JQuery, a little Python) diving in and learning OSX, terminal and Lua/wxLua, wanting to move into mobile development. wxWidgets-3.0.0 | Lua-5.2.2 | OSX-10.9.2 Roy Hinkelman I respect faith, but doubt is what gets you an education. -- Wilson Mizner |
From: Paul K <pau...@ya...> - 2014-02-22 00:53:39
|
Hi John, > Yes, note that From8BitData() is static and To8BitData() is not. Thank you for the prompt change! Unfortunately, it didn't have the desired effect for me; maybe I misread wxwidgets documentation. Let's say I have three invalid UTF-8 characters: string.char(0x80, 0x81, 0x82). If I assigned them to a variable u, it has proper length (#u == 3). If I try to add them to wxSTC, nothing happens (the length of the content doesn't change). If I use From8BitData(), then I get 6 bytes instead of 3: #wx.wxString.From8BitData(string.char(0x80, 0x81, 0x82)) == 6, but this looks like "fixed" UTF-8 code. When I add the result to wxSTC, I do get 6 bytes of content there, but that's not what I expected: I expected three characters displayed with 0x80, 0x81, and 0x82 as their codes. What am I doing wrong? Paul. On Wed, Feb 19, 2014 at 9:53 PM, John Labenski <jla...@gm...> wrote: > On Wed, Feb 19, 2014 at 1:27 AM, Paul K <pau...@ya...> wrote: >> >> >> Do we also get To8BitData(), as I may need it to save the data back to a >> file? >> > > Yes, note that From8BitData() is static and To8BitData() is not. > > Regards, > John |
From: Joshua J. <jj...@wo...> - 2014-02-20 19:40:32
|
----- Original Message ----- From: John Labenski Date: 2/20/2014 10:47 AM > wxWebView shouldn't be too hard to wrap, it looks like a single c++ > header file and a new lib to link to, wx30+ only. I don't know the first thing about creating a wxLua binding, but if nobody else is already working on it or wants to, I'll see if I can find some time. I primarily desire to hook up wxWebViewChromium (https://github.com/steve-lamerton/wxWebViewChromium) in my wxLua application. > > I asked previously about wxPropertyGrid, but I believe John said that > it's going to be more work than seems from the API, so I found a > different way to do what I wanted. > > > Yes, wxPropertyGrid is a huge project with lots of little helper > classes. Admittedly, most people need only a tiny part of it. I > remember that there was something funny about it though, something > about #defines and pointers that seemed like wrapping it might be > awkward, but looking now I don't see why I thought that. As a small sampling for information's sake, in looking at a fairly complete sample of how I use wxPropertyGrid in C++ code, I touch: * wxPropertyGridManager * wxPropertyGridPage * wxPropertyGridEvent * wxPGId * wxPGProperty * wxEVT_PG_CHANGED, wxEVT_PG_SELECTED, wxEVT_PG_RIGHT_CLICK, wxEVT_COMMAND_TEXT_UPDATED, wxEVT_COMMAND_BUTTON_CLICKED, wxEVT_CHILD_FOCUS * wxPGRegisterEditorClass with wxPropertyGridManager::SetPropertyEditor() and derived wxPGEditor and wxPGProperty classes Thanks for your help! Josh |
From: John L. <jla...@gm...> - 2014-02-20 17:47:54
|
On Thu, Feb 20, 2014 at 11:36 AM, Paul K <pau...@ya...> wrote: > I didn't realize we don't have wxWebView binding. I'm very much > interested in that as well. > > wxWebView shouldn't be too hard to wrap, it looks like a single c++ header file and a new lib to link to, wx30+ only. > I asked previously about wxPropertyGrid, but I believe John said that > it's going to be more work than seems from the API, so I found a > different way to do what I wanted. > > Yes, wxPropertyGrid is a huge project with lots of little helper classes. Admittedly, most people need only a tiny part of it. I remember that there was something funny about it though, something about #defines and pointers that seemed like wrapping it might be awkward, but looking now I don't see why I thought that. John |
From: Paul K <pau...@ya...> - 2014-02-20 16:36:30
|
I didn't realize we don't have wxWebView binding. I'm very much interested in that as well. I asked previously about wxPropertyGrid, but I believe John said that it's going to be more work than seems from the API, so I found a different way to do what I wanted. Paul. On Thu, Feb 20, 2014 at 6:26 AM, Joshua Jensen <jj...@wo...> wrote: > Hi. > > I am in need of bindings to wxPropertyGrid and wxWebView. > > Before looking into what it takes to make a proper wxLua binding, is > anybody currently working on these? > > Thanks. > > Josh |
From: Joshua J. <jj...@wo...> - 2014-02-20 14:53:05
|
Hi. I am in need of bindings to wxPropertyGrid and wxWebView. Before looking into what it takes to make a proper wxLua binding, is anybody currently working on these? Thanks. Josh |
From: John L. <jla...@gm...> - 2014-02-20 05:54:02
|
On Wed, Feb 19, 2014 at 1:27 AM, Paul K <pau...@ya...> wrote: > > Do we also get To8BitData(), as I may need it to save the data back to a > file? > > Yes, note that From8BitData() is static and To8BitData() is not. Regards, John |
From: Paul K <pau...@ya...> - 2014-02-19 06:27:51
|
Hi John, > I'm no expert in UTF8, but isn't it possible that a malformed UTF8 sequence makes the rest of the file unusable in the sense that you can't really be sure how many bytes the 'bad' sequence is so you could be off by a few bytes for the rest of the file? Not really, as you can simply skip all invalied 8-bit characters (which is what I do to "fix" invalid sequences). Scintilla does better as it can display them as well. > From8BitData() is now in SVN trunk. I'm not sure that it will help as it uses the wxConvISO8859_1 converter, but it is different than the normal wxConvUTF8 converted used normally. Do we also get To8BitData(), as I may need it to save the data back to a file? I'll compile and give it a test some time tomorrow... Thank you! Paul. |
From: John L. <jla...@gm...> - 2014-02-19 05:33:58
|
On Tue, Feb 18, 2014 at 2:12 PM, Paul K <pau...@ya...> wrote: ... > What I am trying to do is to load a file into wxSTC (Scintilla > component). I know that Scintilla can deal with invalid UTF-8 > characters as SciTE displays them as nice inverted rounded boxes with > hex codes inside, but I can't get the same effect with wxSTC. If I try > to load UTF-8 file with characters in, for example, 1252 encoding, the > content fails to load into wxSTC (it shows as empty). > > I'm no expert in UTF8, but isn't it possible that a malformed UTF8 sequence makes the rest of the file unusable in the sense that you can't really be sure how many bytes the 'bad' sequence is so you could be off by a few bytes for the rest of the file? What's interesting is that the content is loaded from a file just > fine, so it seems like at least that part is handled correctly, but > the text is not loaded into wxSTC until I find and fix invalid UTF-8 > characters (I use SetText method, but I've tried others with the same > result). I thought that using From8BitData() may help me to pass all > those characters intact to Scintilla, which will be able to display > them, but I can't test as From8BitData() is not exposed in wxlua. > > From8BitData() is now in SVN trunk. I'm not sure that it will help as it uses the wxConvISO8859_1 converter, but it is different than the normal wxConvUTF8 converted used normally. Regards, John |
From: Paul K <pau...@ya...> - 2014-02-18 19:42:19
|
Hi John, I'm looking for a way to handle (possibly) invalid UTF-8 characters and seem to be missing wxString::From8BitData() and wxString::To8BitData() methods (according to this page: http://docs.wxwidgets.org/trunk/overview_unicode.html#overview_unicode_supportout). What I am trying to do is to load a file into wxSTC (Scintilla component). I know that Scintilla can deal with invalid UTF-8 characters as SciTE displays them as nice inverted rounded boxes with hex codes inside, but I can't get the same effect with wxSTC. If I try to load UTF-8 file with characters in, for example, 1252 encoding, the content fails to load into wxSTC (it shows as empty). You can see this effect by running editor.wx.lua example. Just try to load a file that has \232 or \226 character and the content is going to be empty. What's interesting is that the content is loaded from a file just fine, so it seems like at least that part is handled correctly, but the text is not loaded into wxSTC until I find and fix invalid UTF-8 characters (I use SetText method, but I've tried others with the same result). I thought that using From8BitData() may help me to pass all those characters intact to Scintilla, which will be able to display them, but I can't test as From8BitData() is not exposed in wxlua. I'm open to other ideas to make it work... Paul. |