Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: DOS 8.3 filenames output when filenames contain Unicode Character 'MINUS SIGN' (U+2212)

by Sandy (Curate)
on Dec 08, 2009 at 15:02 UTC ( #811753=note: print w/replies, xml ) Need Help??


in reply to DOS 8.3 filenames output when filenames contain Unicode Character 'MINUS SIGN' (U+2212)

Hello

I can't reproduce your problem, so I don't know if this will work, but it's worth a shot

Win32

Win32::GetLongPathName(PATHNAME)

CORE: Returns a representation of PATHNAME composed of longname components (if any). The result may not necessarily be longer than PATHNAME. No attempt is made to convert PATHNAME to the absolute path. Compare with Win32::GetShortPathName() and Win32::GetFullPathName().

This function may return the pathname in Unicode if it cannot be represented in the system codepage. Use Win32::GetANSIPathName() before passing the path to a system call or another program.

Sandy
  • Comment on Re: DOS 8.3 filenames output when filenames contain Unicode Character 'MINUS SIGN' (U+2212)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811753]
help
Chatterbox?
[Eily]: I actually used the eskimo greeting :P, I just wrote the "canonical" form of the oneliner here
[Discipulus]: next time you can add `SARGV-1` and if still not impressed pass a 'rm -f..' as last arg
[Eily]: :)
[Eily]: or I might be tempted to send him an Acme::EyeDropsed file next time
[Eily]: Acme::Bleach is tempting, but it will look like I'm just using the one module that does precisely exactly what he wants

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-04-26 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (483 votes). Check out past polls.