Fix UTF-8 seek/tell positioning during binary file lookup
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Perl
- スター
- 64
- フォーク
- 6
- 平均マージ
- 5時間
- マージ済み PR(30日)
- 161
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
area:cpan-port area:unicode bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
fglock/PerlOnJava#1341 ·
メンテナーはふだん 2 日以内に返信
-
area:backend area:cpan-port bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
fglock/PerlOnJava#1548 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
fglock/PerlOnJava#1541 ·
メンテナーはふだん 2 日以内に返信
-
area:backend area:cpan-port area:parser area:runtime bug
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
fglock/PerlOnJava#1528 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
fglock/PerlOnJava#1524 ·
メンテナーはふだん 2 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
openfoodfacts/openfoodfacts-server#14724 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rubocop/ruby-style-guide#982 ·
-
bug question
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RotherOSS/otobo#6172 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100