Re: what was VMS do here? (was [perl #79960] Setting $/ to read fixed records can corrupt valid UTF-8 input)
[email protected] (Eric Brine) Fri, 2 Mar 2012 04:07:23 -0500
| Newsgroups | perl.perl5.porters,perl.vmsperl |
|---|---|
| Message-ID | <CALJW-qHJFK4+1KWciAFds6_=jn_WaW=yVUc4Qv7eATP295DanA@mail.gmail.com> |
On Thu, Mar 1, 2012 at 6:17 PM, Craig A. Berry <[email protected]> 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.