Hi John,

> Using the unicode build right?

Yes. Everything else Unicode-related is working as far as I can tell.

> Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
> that SetCwd() worked?
> If so then, it'd be a problem with GetCwd(), but I cannot think of any
> reason why it wouldn't work off the top of my head...

yes, it does seem like the problem is with GetCwd, and it should be
easy to reproduce:

> wx.wxFileName.SetCwd([[D:\Lua\下载\下载\]]); 
> print(wx.wxFileName.FileExists("foo.lua")); print(wx.wxGetCwd()); 
> print(wx.wxFileName.SetCwd(wx.wxGetCwd()))
true
D:\Lua\??\??
false

As you can see, the file is there, but using the result of GetCwd to
set it as the current folder fails (returns "false" the second time).

Paul.

On Sun, Aug 19, 2012 at 7:53 PM, John Labenski <[email protected]> wrote:
> On Thu, Aug 16, 2012 at 11:24 AM, Paul K <[email protected]> wrote:
>> It seems like I can't get a proper unicode path from GetCwd() on
>> windows using wxLua 2.8.12.2.
>
> Using the unicode build right?
>
>> I'm running the following code:
>>
>> wx.wxFileName.SetCwd("D:\\Lua\\下载\\"); print(wx.wxFileName.GetCwd())
>>
>> and this prints "D:\Lua\??" whereas I expect the original path to be
>> printed. SetCwd() returns true. I look at some other calls, and others
>
> Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
> that SetCwd() worked?
>
> If so then, it'd be a problem with GetCwd(), but I cannot think of any
> reason why it wouldn't work off the top of my head...
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wxlua-users

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to