Preserve Unicode locale data in DateTime::Locale::FromCLDR
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
system Perlをオラクルとして使用し、t/01.locale.t、t/03.day_period.t、t/04.am_pm.t、t/05.timezone.t、t/06.locale_numbering_system.t、t/10.number_system_digits.tの失敗を再現します。Locale::Unicode::Data/SQLite/DBIのパスとPerlOnJavaのスカラー表現を追跡し、UTF-8バイトがLatin-1文字になる箇所を特定します。両方のバックエンドで対象を絞った非ASCII回帰テストがパスし、DateTime-Locale-FromCLDR v0.8.7が219個すべてのテストにパスすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
PerlOnJava corrupts non-ASCII locale data returned by DateTime::Locale::FromCLDR v0.8.7. UTF-8 values are exposed as byte sequences interpreted as Latin-1, producing mojibake. ASCII locale data remains correct.
CPAN impact
- Distribution: DateTime-Locale-FromCLDR v0.8.7
- CPAN run: 20260913-205737-64746
- PerlOnJava result: 25 of 219 subtests failed in 6 of 15 test programs
- Affected tests: t/01.locale.t, t/03.day_period.t, t/04.am_pm.t, t/05.timezone.t, t/06.locale_numbering_system.t, and t/10.number_system_digits.t
The unaffected tests include t/07.ltr.t, t/08.dst.t, t/09.fatal.t, and the POD tests.
Observed failures
Representative values are returned as UTF-8 bytes decoded as Latin-1. For example:
got: ããã«ã³
expected: バチカン
Other observed mismatches include:
got: åå
expected: 午前
got: a.â¯m.
expected: a. m.
got: Ù
expected: ٠
Failures affect Japanese, Korean, Arabic, French, and other locale data, including AM/PM names, timezone names and formats, numbering-system digits, and locale display strings.
System Perl oracle
The same distribution and dependency versions pass completely under system Perl in the archived run:
t/01.locale.t ................... ok
t/03.day_period.t ............... ok
t/04.am_pm.t .................... ok
t/05.timezone.t ................. ok
t/06.locale_numbering_system.t .. ok
t/10.number_system_digits.t ..... ok
All tests successful.
Files=15, Tests=219
Result: PASS
The distribution is pure Perl. Its Locale::Unicode::Data dependency supplies CLDR data through a bundled SQLite database; no external locale service or native prerequisite is involved in the failing path.
Expected behavior
DateTime::Locale::FromCLDR should return Perl character strings preserving the original Unicode code points and should produce the same locale names, patterns, and digit strings as system Perl.
Investigation requested
Trace the Unicode conversion boundary in the Locale::Unicode::Data/SQLite/DBI path and the PerlOnJava scalar representation. Determine where UTF-8 bytes become Latin-1 characters, then add a small system-Perl-validated regression test covering a non-ASCII CLDR value such as the Japanese AM/PM string or Arabic digits.
The issue may share infrastructure with broader Unicode byte/character problems tracked in issue #1275, but this is a distinct, reproducible CLDR data-path failure.
Acceptance criteria
- Non-ASCII CLDR values retain correct code points and UTF-8 semantics.
- The focused regression passes on JVM and interpreter backends.
- DateTime-Locale-FromCLDR v0.8.7 passes all 219 tests on both backends.
- 主要言語
- Perl
- スター
- 64
- フォーク
- 6
- 平均マージ
- 5時間 38分
- マージ済み PR(30日)
- 170
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
area:cpan-port area:unicode bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
fglock/PerlOnJava#1341 ·
-
area:backend area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
fglock/PerlOnJava#1511 ·
-
area:backend area:cpan-port bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
fglock/PerlOnJava#1508 · コメント 1 件 ·
-
area:cpan-port area:platform enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
fglock/PerlOnJava#1507 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
fglock/PerlOnJava#1506 ·
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
documentation Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
trizen/youtube-viewer#456 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
connectivity オープン
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
Common US ingredient names are not recognized, so about 12.4k US products miss an allergen warning オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openfoodfacts/openfoodfacts-server#14657 · コメント 4 件 ·