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:
Ricardo Signes
Date:
March 24, 2013 00:11
Subject:
Re: [perl #117265] [PATCH] e213661 no warnings 'safesyscalls', fatalnul checks
Message ID:
20130324001144.GD25535@cancer.codesimply.com
* Lukas Mai <plokinom@gmail.com> [2013-03-23T11:34:47]
> >I explicitly allow typical harmless programmer errors adding another \0
> >at the end.
> 
> My favorite semantics would be to not treat \0 specially, regardless of
> warnings. That means failing with ENOENT if you pass such a string to
> open, unlink, stat, ... etc, because as far as Perl is concerned, there
> is a \0 in that string, and as far as the file system is concerned, no
> such file exists. Similarly, glob("*\0") should return ().

This is also my feeling on the topic.

-- 
rjbs

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