develooper Front page | perl.perl5.porters | Postings from July 2016

Re: [perl #128607] POD: sysseek

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
July 13, 2016 03:21
Subject:
Re: [perl #128607] POD: sysseek
Message ID:
20160713032122.GA4387@plasmasturm.org
* l.mai@web.de via RT <perlbug-followup@perl.org> [2016-07-12 23:00]:
> I agree. Fixed in 6d451ee1.

I don’t like this edit. I propose to instead change all 3 instances of
that paragraph in perlfunc to the following:

  Note the emphasis on bytes: even if the filehandle has been set to operate
  on characters (for example using the C<:encoding(utf8)> I/O layer), the
  L<C<seek>|/seek FILEHANDLE,POSITION,WHENCE>,
  L<C<tell>|/tell FILEHANDLE>, and
  L<C<sysseek>|/sysseek FILEHANDLE,POSITION,WHENCE>
  family of functions use byte offsets, not character offsets,
  because seeking to a character offset would be very slow in a UTF-8 file.

Pushed to ap/seektell so people can look at how the result looks&feels.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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