Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Fix UTF-8 seek/tell positioning during binary file lookup

Offen
#1,520 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, perl
Bereich
backend, testing

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

area:backend area:io area:unicode bug

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: password and !"£$%^ are incorrectly reported as absent.
  • t/personalized.t: password is incorrectly absent from both the built-in and custom lists, and stupid1 is 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 2369 and reads password;
  • PerlOnJava positions at byte offset 2372 and reads sword.

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

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fglock/PerlOnJava

Alle Issues in fglock/PerlOnJava

Ähnliche Issues

Weitere Issues zu Perl

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.