Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: How to stat a file with a Unicode (UTF16-LE) filename in Windows?

by cdarke (Prior)
on Feb 06, 2009 at 11:02 UTC ( #741865=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to stat a file with a Unicode (UTF16-LE) filename in Windows?
in thread How to stat a file with a Unicode (UTF16-LE) filename in Windows?

For what it is worth (not much) the MSDN says the following:
Windows stores the long file names on disk in Unicode. ...The valid character set for these long file names is the NTFS character set, less one character: the colon (':') ...

I have searched high and low for a definition of "the NTFS character set" but could not find a thing.

The MSDN also offers conventions (like the Pirate's code) for naming files:
Use any character in the current code page for a name, except characters in the range 0 through 31 or any character explicitly disallowed by the file system. A name can contain characters in the extended character set (128255). However, it cannot contain the following reserved characters: < > : " / \ |
This implies single byte characters, which contradicts that above. The phrase "any character explicitly disallowed by the file system" is wonderful when they do not seem to define what they might be.


Comment on Re^3: How to stat a file with a Unicode (UTF16-LE) filename in Windows?
Re^4: How to stat a file with a Unicode (UTF16-LE) filename in Windows?
by Anonymous Monk on Mar 07, 2013 at 09:36 UTC
    See http://en.wikipedia.org/wiki/Filename section 'Comparison of filename limitations'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-04-25 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (586 votes), past polls