Fix UTF-8 seek/tell positioning during binary file lookup
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
- 52/100
Hướng nghiên cứu
Start with the existing UTF-8 seek audit and reproduce the failures in t/lookup.t and t/personalized.t. Trace the seek/tell and readline interaction used by Search::Dict::look on a larger UTF-8 file with a multibyte character before the lookup. Done means the regression passes on both JVM and interpreter backends and the affected upstream tests report all 9 tests passing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Data::Password::Common 0.004 fails its upstream test suite on PerlOnJava, while the same suite passes completely under system Perl.
Reproduction
CPAN compatibility run: 20260924-085657-82687
Distribution: Data-Password-Common-0.004
Observed result:
Files=3, Tests=9, 11 wallclock secs
Result: FAIL
Failed 2/3 test programs. 5/9 subtests failed.
The failures are:
t/lookup.t:passwordand!"£$%^are incorrectly reported as absent.t/personalized.t:passwordis incorrectly absent from both the built-in and custom lists, andstupid1is incorrectly absent from the built-in list.
The ordinary system-Perl oracle passes all 9 tests. The failure reproduces on both the JVM and interpreter backends.
Root cause evidence
Data::Password::Common opens its password list with the :utf8 layer and calls Search::Dict::look, which performs byte-offset binary searches using seek and then reads a line.
With the custom ASCII-list test:
- system Perl positions at byte offset
2369and readspassword; - PerlOnJava positions at byte offset
2372and readssword.
The input file contains multibyte UTF-8 characters before the searched entry. This indicates an encoded-file buffering/positioning parity bug in the interaction between seek/tell and subsequent readline/binary-search operations. It is not a missing dependency, timeout, native-module, or upstream test issue.
The basic UTF-8 seek audit currently passes, so a regression test should cover a larger UTF-8 file with a multibyte character before a Search::Dict-style binary lookup.
Scope
Both execution backends are affected. Existing labels bug, area:io, area:unicode, and area:backend are applicable.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 6
- Merge trung bình
- 4 giờ 45 phút
- Pull request đã merge (30 ngày)
- 180
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
-
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
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:runtime area:warnings bug high-impact
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fglock/PerlOnJava#1577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:regex area:unicode bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
fglock/PerlOnJava#1556 ·
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ó 1/5 Dưới một giờ Mức phù hợp với người mới 87/100
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 82/100
objectionary/eolang.sty#184 ·
-
Remote IMAP SSL setting is not inherited by discovered folders, causing port 143 connectionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array referenceĐang mở1.severity: security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày