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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
March 25, 2013 14:29
Subject:
Re: [perl #117265] [PATCH] e213661 no warnings 'safesyscalls', fatalnul checks
Message ID:
CAHhgV8hYny=4LMnmfd2ZMoHpYhZ+Uq7A2LWEKRiebzaw0TfPtA@mail.gmail.com
On Mon, Mar 25, 2013 at 3:14 PM, demerphq <demerphq@gmail.com> 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.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About