Fix UTF-8 seek/tell positioning during binary file lookup
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Perl
- Sterne
- 64
- Forks
- 6
- Ø Merge
- 4 Std. 55 Min.
- Gemergte PRs (30 T.)
- 169
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
fglock/PerlOnJava#1341 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:cpan-port area:regex area:unicode bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
fglock/PerlOnJava#1556 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:backend area:runtime bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
fglock/PerlOnJava#1554 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:cpan-port area:runtime bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
fglock/PerlOnJava#1552 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:backend area:cpan-port bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
fglock/PerlOnJava#1548 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in fglock/PerlOnJava
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
openfoodfacts/openfoodfacts-server#14749 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
rubocop/ruby-style-guide#982 ·
-
bug question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
RotherOSS/otobo#6172 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100