Time::Format 1.16 exposes import and locale compatibility failures
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by running the named upstream tests: t/export1.t, t/export2.t, t/export3.t, and t/locale.t, on both PerlOnJava backends. Read the custom import implementation and the PerlOnJava handling of imported symbols under strict, then investigate how POSIX::setlocale interacts with I18N::Langinfo. Done means the upstream tests pass on both backends.
由索引模型根据 Issue 内容生成。
描述
Summary
The upstream Time::Format 1.16 suite passes under system Perl but fails under PerlOnJava on both execution backends. The archived run shows two independent compatibility failures: custom imports do not make exported symbols available under strict, and localized month/day names remain English after changing LC_TIME.
Evidence
CPAN run 20261005-091352-31215:
- System Perl 5.42.2: isolated install of the exact distribution and prerequisites, including recommended
Date::Manip7.00; all 26 test programs / 533 tests passed. - PerlOnJava JVM backend: 6/515 subtests failed across 4/26 test programs.
- PerlOnJava interpreter backend: reproduced failures in
t/export1.t,t/export2.t,t/export3.t, andt/locale.t. - Environment: macOS arm64, Java 24.0.2. The archived PerlOnJava log reports Perl 5.044001; the exact source commit was not recorded.
Failure 1: custom exports and strict compilation
The export tests load Time::Format with use_ok, which succeeds, then abort because imported %strftime, %manip, or %time symbols are still reported as undeclared. t/export2.t also reports Time::Format as a bareword under strict subs. The module's custom import installs aliases through symbolic typeglob assignments. PerlOnJava should make those imported symbols visible to the caller's strict compilation, as system Perl does.
Failure 2: locale changes are not reflected by I18N::Langinfo
t/locale.t fails the six French, German, and Spanish month/day checks; the returned names stay English. A focused probe shows POSIX::setlocale(LC_TIME, ...) returns the requested locale on PerlOnJava, but I18N::Langinfo::langinfo(MON_6()) still returns June on both JVM and interpreter. System Perl returns localized month names after the same calls.
Expected
All upstream tests should pass on both PerlOnJava backends. The imported-symbol behavior and the POSIX::setlocale/I18N::Langinfo interaction can be handled independently if they have different owners.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 7
- 平均合并
- 4 小时 27 分钟
- 30 天内合并 PR
- 178
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
area:cpan-port area:unicode bug
难度 2/5 1-3 小时 新手友好度 88/100
fglock/PerlOnJava#1341 ·
维护者通常 1 天内回复
-
area:backend area:cpan-port area:parser bug
fglock/PerlOnJava#1659 ·
维护者通常 1 天内回复
-
Alien::Build archive extraction fails for Ninja and Meson可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
fglock/PerlOnJava#1657 · 2 条评论 ·
维护者通常 1 天内回复
-
fglock/PerlOnJava#1655 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
convos-chat/convos#977 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
inverse-inc/packetfence#9387 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
linux-test-project/lcov#552 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
szTheory/exifcleaner#383 ·
维护者通常 1 天内回复
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 62/100
NixOS/nixpkgs#569828 · 1 个 reaction ·
维护者通常 1 天内回复