develooper Front page | perl.perl5.porters | Postings from March 2013

Re: [perl #117265] [PATCH] e213661 no warnings 'safesyscalls', fatalnul checks

Thread Previous | Thread Next
Leon Timmermans
March 25, 2013 14:29
Re: [perl #117265] [PATCH] e213661 no warnings 'safesyscalls', fatalnul checks
Message ID:
On Mon, Mar 25, 2013 at 3:14 PM, demerphq <> wrote:
> Reini, on Win32 filenames are stored internally as UTF-16. What affect
> does your patch proposal have on opening files with widecharacters in
> them? (Widecharacters as you know could easily contain nuls).

Perl uses legacy interfaces on Windows (that is, it accesses the
filesystem using 8-bit interfaces, the encoding is system-defined but
tends to be latin-1, which saves our ass most of the time).

I'd consider this our number one Windows bug (because it screws up
badly when trying to open files with Unicode in their names), but
fixing this will be non-trivial, and few people have the appropriate
Windows knowledge anyway.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About