Skip to content

fix: preserve localized input line counter changes - #1967

Merged
fglock merged 2 commits into
masterfrom
fix/1965-localized-input-line-number
Nov 4, 2026
Merged

fglock merged 2 commits into
masterfrom
fix/1965-localized-input-line-number

Conversation

@fglock

@fglock fglock commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve $.' filehandle counter changes across dynamic localization while restoring the previously current handle.
  • Keep interpreter assignments directed to special scalar setters, including $., $^H, ${^WARNING_BITS}, and ${^ENCODING}.
  • Add a system-Perl-validated regression covering seek, localized counter assignment, and switching the current input handle.

Fixes #1965.

Validation

  • nice -n 19 make — passed.
  • nice -n 19 make check-links — passed.
  • timeout 60 perl src/test/resources/unit/localized_input_line_number.t — passed.
  • Focused regression and archived arXiv::FileGuess 1.01 test — passed on JVM and interpreter backends.
  • warnings_block_callsite_restore.t, encoding_special_variable_error.t, and regex_hint_new_re_diagnostic.t — passed on the interpreter backend.
  • Archived CPAN run: 20261104-113007-26634.

Keep filehandle line counter updates made through local $. and route
interpreter assignments through writable special scalar setters.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <openai-codex@users.noreply.github.com>
Include the latest master changes before the next PR validation run.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <openai-codex@users.noreply.github.com>
@fglock
fglock merged commit 9dde46a into master Nov 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve filehandle line counter assigned through localized $.

1 participant