in reply to Re^2: Problems Opening file with Perl where path has UTF8 (sorry)
in thread Problems Opening file with Perl where path has UTF8

FindFirstFileA() isn't even in Win32API::File. Unfortunately, the complex structs used makes it less trivial to add; but I'll look into that. But that wouldn't help File::Find much. Better would be to fix readdir (and thus glob, I'd hope) on Win32 to use FindFirstFileW() and return UTF-8 file names only if the found files have names with non-8-bit characters in them (or perhaps non-7-bit characters), or perhaps do things backward compatably based on something in %ENV (well, I prefer using %ENV over some obscure internal Perl variable because I find such preferences easier to deploy).

- tye        

  • Comment on Re^3: Problems Opening file with Perl where path has UTF8 (FindFirstFile)

Replies are listed 'Best First'.
Re^4: Problems Opening file with Perl where path has UTF8 (FindFirstFile)
by dsully (Acolyte) on Nov 24, 2006 at 05:58 UTC
    Yeah, readdir() needs work too.

    Anything that would help - I'm completely unable to read UTF-8 files on Windows right now.

    Thanks