Regexp::Assemble 0.38 fails literal control-character dump test
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 40/100
Hướng nghiên cứu
The issue is in the PerlOnJava frontend/compiler's handling of literal control characters in qw(...) arguments. Start by examining the test file t/00_basic.t from Regexp::Assemble 0.38, specifically test 304. Look at how the PerlOnJava compiler processes quoted-word constructs and control characters. The goal is to make the dump output match the expected string, ensuring compatibility with system Perl. Run the test after changes to verify.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Regexp::Assemble 0.38 fails one upstream test on both backends
Summary
The upstream Regexp::Assemble 0.38 test suite passes completely under system Perl but fails under PerlOnJava on both the JVM and interpreter backends.
Reproduction
Run the upstream test file t/00_basic.t from Regexp::Assemble 0.38.
The failure is test 304, dump pretty node:
got: '[{*}]'
expected: '[\\x07 {\\x05=>[\\x05] \\x06=>[\\x06]}]'
The test constructs a Regexp::Assemble object with literal control characters in qw(...) arguments:
Regexp::Assemble->new->insert(qw(\x07 \x05))->insert(qw(\x07 \x06))->dump
(\\x07, \\x05, and \\x06 above represent the literal control characters present in the upstream test source.)
Results
- System Perl 5.42.2: PASS, 11 files / 2,948 tests.
- PerlOnJava JVM backend: FAIL, 1 of 2,948 tests.
- PerlOnJava interpreter backend: FAIL, 1 of 2,948 tests.
- CPAN random tester run:
20260922-093937-23377.
The shared failure across both backends indicates that the PerlOnJava frontend/compiler is not preserving or handling these literal control-character qw(...) operands correctly. This is not an XS/native dependency or environment prerequisite issue.
Acceptance criteria
Regexp::Assemble0.38t/00_basic.tpasses on both PerlOnJava backends.- The behavior remains compatible with system Perl for literal control characters in quoted-word arguments.
- Add a focused project-owned regression test for the minimal reproducer.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 7
- Merge trung bình
- 5 giờ 6 phút
- Pull request đã merge (30 ngày)
- 200
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fglock/PerlOnJava
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:unicode bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fglock/PerlOnJava#1341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:parser bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
fglock/PerlOnJava#1763 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1735 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Perl/perl5#24942 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
PDLPorters/pdl#561 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
objectionary/eolang.sty#197 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
radiator-software/p5-net-ssleay#577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
beyondgrep/website#143 ·