Skip to content

fix: package Unicode::Collate allkeys.txt resource #1159

Description

@fglock

Failure

Text::Levenshtein 0.15 fails in CPAN run 20260827-102602-1611 only in t/24-ignore-diacritics.t because Unicode::Collate cannot find Unicode/Collate/allkeys.txt through @INC.

Unicode::Collate: Can't locate Unicode/Collate/allkeys.txt in @INC

The first eight test programs pass (240 subtests). The diacritic test aborts before running its planned 12 assertions.

Root cause

The source tree contains src/main/perl/lib/Unicode/Collate/allkeys.txt, and the bundled Unicode::Collate.pm intentionally uses this file-based DUCET table. However, the active PerlOnJava JAR does not contain the resource.

The Gradle processResources configuration includes Perl source/document extensions (*.pm, *.ph, *.pod, and others) but does not include *.txt, so the collation table is excluded from the packaged runtime.

Baseline

Text::Levenshtein is pure Perl. Under system Perl, its full upstream suite passes: 9 files, 252 tests, Result: PASS.

Expected behavior

Package the required Unicode/Collate/allkeys.txt resource (and retain any other required Collate table files) in the runtime JAR so Unicode::Collate->new can resolve it through normal @INC lookup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions