in reply to Win32 Unicode filenames: how to get their size ?

readdir should never return unicode filenames. See "Unicode in Filenames" in perltodo.

update: actually, it depends on your version of perl. Consult your perls perltodo. I'm not sure if it did in perl 5.8.0.

Also, checkout http://search.cpan.org/~tyemq/Win32API-File-0.08/File.pm, http://search.cpan.org/~arich/Win32-DirSize-1.12/Win32/DirSize/DirSize.pm

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Win32 Unicode filenames: how to get their size ?

Replies are listed 'Best First'.
Re^2: Win32 Unicode filenames: how to get their size ?
by olivierp (Hermit) on Aug 20, 2004 at 11:49 UTC
    Argh !
    Thanks for the info & pointers.
    I'm building a damn slow way involving Win32::OLE & WMI, as I can force Win32::OLE to work in UTF8.,
    WMI, albeit slow, and outright not responding for a directory with ~100000 subdirs, gives me all the info I need.

    --
    Olivier