Skip to content

Fix wide sprintf fields and bare CR handling in Perl source #1692

Closed

Description

@fglock

Problem

The WWW::Mediawiki::Client 0.31 CPAN test exposed two PerlOnJava compatibility failures:

  1. sprintf rejected a generated table column width of 10965 characters due to an 8192-character limit.
  2. A bare carriage return in a module’s regex source was normalized to a line feed before parsing. This changed the regex and removed line feeds from the resulting wiki text.

Expected behavior

  • sprintf accepts ordinary wide fields while retaining a reasonable bound for allocation safety.
  • Perl source loading normalizes CRLF line endings but preserves bare CR bytes inside quote-like strings and regex patterns.

Validation

The distribution’s system-Perl oracle passed. With the fix, the WWW::Mediawiki::Client distribution test suite reports 118/118 passing. Its server-only test is skipped when no local MediaWiki server is configured.

Fix

Implemented in PR #1691.

Activity

  1. added
    bugSomething isn't working
    area:runtimeCore Perl runtime semantics
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:runtimeCore Perl runtime semanticsbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions