Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Directory operations and Unicode

by afoken (Monsignor)
on Nov 02, 2011 at 11:13 UTC ( #935353=note: print w/replies, xml ) Need Help??

in reply to Re: Directory operations and Unicode
in thread Directory operations and Unicode

The problem is that Win32 seems to be the only platform that offers an Unicode-aware file system API.

And as far as I know, all perls compiled for Windows still use the "ANSI" API to access the file system (i.e. CreateFileA instead of CreateFileW). Completely switching Perl to use the "wide" API may have "interesting" side effects. A very obvious one would be readdir returning Unicode strings instead of byte strings. Will existing code be able to handle that?


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^3: Directory operations and Unicode
by moritz (Cardinal) on Nov 02, 2011 at 11:16 UTC

    And even if you make the wide character API only available with a pragma, you still need separate calling code for Windows and Unix, which was mostly my point.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935353]
[choroba]: It's just troll feeding.
[beech]: of course the magic word that explains everything :p
[erix]: they should lean to gnash their teeth a bit instead of writing more ^Re:NN-nodes :)
[erix]: *learn

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-01-17 23:46 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (159 votes). Check out past polls.