in reply to stat() and utf8 filenames on Win32 fails for me, why?

Mmh, your answers tell me that I am alone with this behaviour, or there's some bug in my code. I will look into it and provide additional details soon.
  • Comment on Re: stat() and utf8 filenames on Win32 fails for me, why?

Replies are listed 'Best First'.
Re^2: stat() and utf8 filenames on Win32 fails for me, why?
by nikosv (Deacon) on Feb 23, 2010 at 05:58 UTC

    You could use inherent Windows functions;a workaround is to use the COM facilities provided by windows (in this case Scripting.FileSystemObject) which provide a much higher level of abstraction than the Win32 api calls.

    In your case you could use the GetFile method and then work with the properties of the returned object such as "DateCreated".

    Take a look at this Perlmonks node Opening files with japanese/chinese chars in filename and at msdn File Object