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

Re: How on earth did we manage to break pack() so badly?

Thread Previous | Thread Next
From:
Eric Brine
Date:
May 2, 2013 19:16
Subject:
Re: How on earth did we manage to break pack() so badly?
Message ID:
CALJW-qHiAbxjS6oLTM0mPWeW5u+_iDJuveKH7J1GSTMbi+NrxQ@mail.gmail.com
On Wed, May 1, 2013 at 12:44 PM, demerphq <demerphq@gmail.com> wrote:

> As such introduces a change which
> basically means one cannot safely put a string into a C structure
> without the possibility of the entire structure being corrupted by
> doing so doesn't make sense.
>

So this is all an XY problem. What you need is a version of SvPVbyte that
croaks instead of issuing a "wide character" warning and mangling the
string.

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