Fix UTF-8 seek/tell positioning during binary file lookup
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 64
- Forks
- 6
- Merge medio
- 5 h
- PR fusionados (30 d)
- 161
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
fglock/PerlOnJava#1341 ·
Los mantenedores suelen responder en 2 días
-
area:backend area:cpan-port bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
fglock/PerlOnJava#1548 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
fglock/PerlOnJava#1541 ·
Los mantenedores suelen responder en 2 días
-
area:backend area:cpan-port area:parser area:runtime bug
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
fglock/PerlOnJava#1528 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
fglock/PerlOnJava#1524 ·
Los mantenedores suelen responder en 2 días
Todos los issues de fglock/PerlOnJava
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
🇨🇦 Canada brands 🧬 Taxonomies
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
openfoodfacts/openfoodfacts-server#14724 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rubocop/ruby-style-guide#982 ·
-
Strange loop in AgentTicketBulkAbiertobug question
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RotherOSS/otobo#6172 · 1 comentario ·
Los mantenedores suelen responder en 1 día