develooper Front page | perl.vmsperl | Postings from March 2012

Re: what was VMS do here? (was [perl #79960] Setting $/ to read fixedrecords can corrupt valid UTF-8 input)

Thread Previous | Thread Next
From:
Eric Brine
Date:
March 2, 2012 07:22
Subject:
Re: what was VMS do here? (was [perl #79960] Setting $/ to read fixedrecords can corrupt valid UTF-8 input)
Message ID:
CALJW-qHJFK4+1KWciAFds6_=jn_WaW=yVUc4Qv7eATP295DanA@mail.gmail.com
On Thu, Mar 1, 2012 at 6:17 PM, Craig A. Berry <craigberry@mac.com> wrote:

> What happens on Unix when you have a pipe buffer that is 8192 bytes and
> you set $/ to 8193 and read a record containing UTF-8 data through the pipe?
>

Perl requests 8K (formerly 4K) chunks until it has received enough. It
requests 8K even if it only needs 1 byte.


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