Re: [wxlua-users] string compare error

2008-02-08 Thread marcos wurzius
Here is a sample of the problem. - local encode = function(s) s = s or '' s = string.gsub(s, "(.)", function (c) return string.format("%02x", string.byte(c)) end) return s end -- portuguese locale -- os.setlocale('Portuguese - Br

Re: [wxlua-users] string compare error

2008-02-08 Thread marcos
John Labenski escreveu: Where are the functions "encode" and "setlocale" from? encode = function(s) s = string.gsub(s, "(.)", function (c) return string.format("%02x", string.byte(c)) end) return s end I must set locale in two env. lua: os.setlocale('Portuguese - Brazil') wx: wx.wxLocale(wx

Re: [wxlua-users] string compare error

2008-02-08 Thread John Labenski
On Feb 8, 2008 11:38 AM, marcos <[EMAIL PROTECTED]> wrote: > Hi, list, > > I have a very strange error. > On previous versions this works. > > The value seted and returned from wxListBox are diferent. > The value seted is 'Amanhã'. > > print(list:GetStringSelection()=='Amanhã') -> false > But the

Re: [wxlua-users] wxlua

2008-02-08 Thread John Labenski
Please use the wxlua-users mailing list. It does require you to join, but that is only to keep the list from getting junk email. On Feb 8, 2008 6:33 AM, wlprg00 <[EMAIL PROTECTED]> wrote: > Hi John, > > Sorry for bothering you, but I have few questions: > > 1. After wxlua program is closed (on W32

[wxlua-users] string compare error

2008-02-08 Thread marcos
Hi, list, I have a very strange error. On previous versions this works. The value seted and returned from wxListBox are diferent. The value seted is 'Amanhã'. print(list:GetStringSelection()=='Amanhã') -> false But the interface show the same strings. Then I tested to encode the string, and