[wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
Can anyone tell me why this fails? It seems that while the code 'CanRead()' the URL's stream just fine, it cannot actually 'Read()' it at all! Substituting other URL and direct file references, even local ones, works fine, as does a directly fetched copy of the page I'm after, stored locally. It

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread John Labenski
On Tue, Aug 10, 2010 at 10:05 AM, Lostgallifreyan wrote: > Can anyone tell me why this fails? Unfortunately no, but http://www.google.com and yahoo.com work fine. > It seems that while the code 'CanRead()' the URL's stream just fine, it > cannot actually 'Read()' it at all! > Substituting other

Re: [wxlua-users] Modification for cansim.cpp

2010-08-10 Thread John Labenski
Thank you very much. I'll apply it to CVS. Regards, John Labenski On Mon, Aug 9, 2010 at 1:37 PM, AndreArpin wrote: > Changing > > line 38 > > from >     extern bool wxLuaBinding_wxluacan_init(); > to >     extern wxLuaBinding*  wxLuaBinding_wxluacan_init(); > > will allow to link wxluacan.e

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
John Labenski wrote: (10/08/2010 19:28) > >On Tue, Aug 10, 2010 at 10:05 AM, Lostgallifreyan >wrote: >> Can anyone tell me why this fails? > >Unfortunately no, but http://www.google.com and yahoo.com work fine. > For a moment there I took that to be a terse recommendation for searching. :) >

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
John Labenski wrote: (10/08/2010 19:28) >function iff(a, b, c) if a then return b else return c end end > . . . >print(string.format("%d: %d : %d : Err %d : '%s'\n", i, S:LastRead(), > iff(S:Eof(), 1, 0), U:GetError(), a)) My turn for a small neat idea. :) Instead of writing a function to

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
Lostgallifreyan wrote: (10/08/2010 21:38) >John Labenski wrote: >(10/08/2010 19:28) > >>function iff(a, b, c) if a then return b else return c end end >> >. >. >. >>print(string.format("%d: %d : %d : Err %d : '%s'\n", i, S:LastRead(), >> iff(S:Eof(), 1, 0), U:GetError(), a)) > >My turn for

[wxlua-users] How should I handle string with Unicode in wxlua?

2010-08-10 Thread Chunlin Zhang
These days I am writing a program with wxlua,and I want it to run in windows and linux.But I the charset encoding/decoding is a problem. For example I want to take a string from wxTextCtrl to handle,and I wish it is a Unicode string,but I found that when in linux,this string is a "utf8" string,whe

Re: [wxlua-users] How should I handle string with Unicode in wxlua?

2010-08-10 Thread Chunlin Zhang
Chunlin Zhang writes: > I forget to say that I want to write a pure lua program,if it is c/lua mixed programming it may not have this problem -- This SF.net email is sponsored by Make an app they can't live without