Skip to content

fix: correct @Dsuf array construction in 10 language modules#105

Draft
Koan-Bot wants to merge 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-dsuf-array-syntax
Draft

fix: correct @Dsuf array construction in 10 language modules#105
Koan-Bot wants to merge 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-dsuf-array-syntax

Conversation

@Koan-Bot
Copy link
Copy Markdown

@Koan-Bot Koan-Bot commented Apr 3, 2026

What

Fix Perl string-repetition bugs in @Dsuf arrays across 10 language modules, plus remove duplicate timezone entries.

Why

("η" x 31) creates a single string "ηηηηη..." — not a 31-element array. The correct syntax is ("η") x 31. This affects Greek, Swedish, Amharic, Tigrinya (3 variants). Brazilian and Chinese had arrays short by 1-2 elements. Czech and Russian never initialized @Dsuf at all.

While most of these modules have format_o overrides that don't use @Dsuf, the arrays are still wrong and would break if anyone adds a @Dsuf-based format_o or if test coverage is tightened (which this PR does).

Also removes duplicate ict and pht entries in Time::Zone (identical values, harmless but clearly unintended duplication from a prior merge).

Testing

  • Added @Dsuf size validation (>= 31) to lang-data.t
  • Full suite: 1256 tests pass

🤖 Generated with Claude Code


Quality Report

Changes: 12 files changed, 17 insertions(+), 15 deletions(-)

Code scan: clean

Tests: skipped

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Several language modules had Perl string-repetition bugs where
`("x" x 31)` creates a single string of 31 repeated characters
instead of `("x") x 31` which creates an array of 31 elements.

Affected modules: Greek, Swedish, Amharic, Tigrinya, TigrinyaEritrean,
TigrinyaEthiopian. Also fixes short arrays in Brazilian (30→32) and
Chinese (30→32), and adds missing @Dsuf initialization in Czech and
Russian.

Removes duplicate ICT and PHT entries in Time::Zone.

Adds @Dsuf size validation to lang-data.t to prevent regression.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant