Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Windows NTFS UTF-16LE File-Operations

by Anonymous Monk
on Feb 20, 2012 at 15:03 UTC ( #955082=note: print w/ replies, xml ) Need Help??


in reply to Windows NTFS UTF-16LE File-Operations

Alas, it's still a ridiculous situation. Not counting the various work-arounds using modules from the Win32/Win32API namespace (tye and ikegami usually give answers involving Windows-specific code, see Super Search), you can use Path::Class::Unicode and PerlIO::fse for reasonably portable code.


Comment on Re: Windows NTFS UTF-16LE File-Operations
Replies are listed 'Best First'.
Re^2: Windows NTFS UTF-16LE File-Operations
by Corion (Pope) on Feb 20, 2012 at 15:15 UTC

    Looking at the code of Path::Class::Unicode, it is broken at least on some non-Windows operating systems (well, actually on some filesystems). It seems to assume that all file systems will export their entities as UTF-8, which is a fairly broad assumption given VFAT and NFS, which only since v4 in 2009 makes claims on the encoding.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2015-07-07 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls