Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Trouble with File::Find::Rule (win32 unicode overload file test operators)

by Anonymous Monk
on Dec 14, 2013 at 11:31 UTC ( #1067126=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Trouble with File::Find::Rule
in thread Trouble with File::Find::Rule

Jim has a point, but its not insurmountable, see

Win32::Unicode, Win32::Unicode::Native, Re^5: Is File::Find Unicode-(Conformant|Compliant|Enabled|Capable)?

Path::Class::Unicode, Win32::LongPath

stuffing stuff into global namespace should be possible with monkeypatching, for File::Find , File::Find::Rule.... or for CORE ... someone just has to do it or at minimum file a bug report

and what might be slightly harder is getting overload file test operators to work update they should work Re: Check if unicode directory exists
Bug #60888 for perl5: Win32: support full unicode in filenames (use Wide-system calls)
Bug #75000 for perl5: Unicode symbols damaged in $File::Find::name

so its 90% done, dare I say even 95%, just needs more tests and more bug reports and a little cooperation ...


Comment on Re^3: Trouble with File::Find::Rule (win32 unicode overload file test operators)
Re^4: Trouble with File::Find::Rule (win32 unicode overload file test operators)
by Jim (Curate) on Dec 16, 2013 at 18:42 UTC

    The new news here is Win32::LongPath, which looks very promising. It was officially released just three months ago, so it wasn't around in 2010 when I asked "Is File::Find Unicode-(Conformant|Compliant|Enabled|Capable)?" It has already been enhanced (just days ago) with an important feature:  support for Cygwin. This new CPAN module addresses the problems that I lamented earlier makes Perl—like other modern scripting languages—not generally and dependably useable for folder and file manipulation in the modern Windows environment, including Unicode, long paths and junction/mount points.

    Perl scripts written with Win32::LongPath aren't portable, of course. And as far as I can tell, there's no new File::Find::foo module that exploits the new Windows-specific capabilities afforded by Win32::LongPath. But having the ability to manipulate folders and files on Windows reliably using a comprehensive, well-documented and seemingly well-written CPAN module is a big win for Modern Perl versus other scripting languages.

    Jim

      The new news ...

      Not really more promising than Win32::Unicode , but I welcome the improvements it provides

      there's no new File::Find::foo

      :D I already provided the code once, all you had to do was release it :) adapt it for Win32::LongPath ... combine with ex::override ... :D

      an important feature: support for Cygwin.

      LOL!!!! As Cygwin isn't windows, it shouldn't need specific suport from a Win32 module because it just doesn't belong ... all the regular Cygwin should just take care of everything, cause thats cygwin promise ...

      Hi

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2014-09-19 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls