in reply to Unicode in filenames

There used to be a command line switch -C which enabled the use of the wide character code Win32 apis within perl. For some inexplicable reason this was dropped and the switch recycled at some point.

You can get access to most of the W postfix apis, including CreateFileW() via tye's Win32API::File. You'll also need OsFHandleOpen() to 'convert' the Native filehandle returned by CreateFile() in to a Perl filehandle before you can use the normal Perl fileIO constructs.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Unicode in filenames
by Anonymous Monk on Feb 13, 2006 at 06:32 UTC
    For some inexplicable reason this was dropped and the switch recycled at some point.
    perl581delta
    (Win32) The -C Switch Has Been Repurposed The -C switch has changed in an incompatible way. The old semantics of this switch only made sense in Win32 and only in the "use utf8" universe in 5.6.x releases, and do not make sense for the Unicode implementation in 5.8.0. Since this switch could not have been used by anyone, it has been repurposed. The behavior that this switch enabled in 5.6.x releases may be supported in a transparent, data-dependent fashion in a future release.