Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Regex rejects IsPrint when combined with another character-class property

Aperta
#1,556 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
compilers

Direzione di ricerca

Start by reproducing the failure with the character-class patterns in the issue and running t/01.new.t, t/04.particles.t, t/05.contributor.t, and t/06.source.t on both the JVM and interpreter backends. Inspect the existing Unicode alias handling, especially the Is/is-prefix logic; done means IsPrint combined with \s is accepted and the affected tests pass on both backends.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:cpan-port area:regex area:unicode bug

Summary

XML-Atom-App v0.0.5 fails under PerlOnJava because the regex engine rejects the valid Perl Unicode property alias \p{IsPrint} when it is combined with \s in a character class.

Reproduction

These patterns behave inconsistently:

  • qr/[\p{IsPrint}]/ succeeds.

  • qr/^[\p{IsPrint}]*$/ succeeds.

  • qr/[\p{IsPrint}\s]/ fails.

  • qr/^[\p{IsPrint}\s]*$/ fails with:

    Unknown user-defined property name IsPrint in regex

The failure affects both the JVM and interpreter backends.

CPAN evidence

  • Distribution: XML-Atom-App v0.0.5
  • CPAN run: 20260928-091741-26386
  • Failing tests: t/01.new.t, t/04.particles.t, t/05.contributor.t, t/06.source.t
  • PerlOnJava result: 20/21 tests; 4/10 test programs failed
  • System Perl result: all 56 upstream tests passed

The failing module code uses:

/^[\\p{IsPrint}\\s]*$/

The same compatibility failure appeared in earlier CPAN reports, including the 2026-08-26 and 2026-09-10 report runs.

Related work

Existing Unicode alias handling strips the Is/is prefix, and prior work addressed isAlpha-style aliases. This reproducer shows a remaining context-sensitive failure when the alias is followed by another property escape in the same character class.

Lingua principale
Perl
Stelle
64
Fork
6
Merge medio
4h 55m
PR unite (30g)
169

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.