[Perl/perl5] b25482: SelfLoader: try harder to not confuse PERLIO=stdio

[email protected] (Tony Cook via perl5-changes)
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/smoke-me/tonyc/selfloader-mixed-io-again/[email protected]>
  Branch: refs/heads/smoke-me/tonyc/selfloader-mixed-io-again
  Home:   https://github.com/Perl/perl5
  Commit: b254823b95aef891051f9f8676d5ff0b137728f4
      https://github.com/Perl/perl5/commit/b254823b95aef891051f9f8676d5ff0b137728f4
  Author: Tony Cook <[email protected]>
  Date:   2026-05-07 (Thu, 07 May 2026)

  Changed paths:
    M dist/SelfLoader/lib/SelfLoader.pm

  Log Message:
  -----------
  SelfLoader: try harder to not confuse PERLIO=stdio

The previous change was failing on some FreeBSD and Linux, possibly
because it assumed that a stdio level seek would result in an fd level
seek, but a libc could optimize to just reposition within the buffer
if the seeked to position has already been read in.

So split this into two, first test that the handle is seekable without
a net change in position, then only reposition the duplicated handle,
which *should* have no buffered content.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.