Skip to content

Backport the Unicode 15 to 17 fixes to 8.2.x - #14

Merged
MoamenEltouny merged 3 commits into
8.2.xfrom
backport/unicode-17-8.2.x
Oct 6, 2026
Merged

MoamenEltouny merged 3 commits into
8.2.xfrom
backport/unicode-17-8.2.x

Conversation

@MoamenEltouny

Copy link
Copy Markdown
Member

Backports the Unicode 15 to 17 fixes from #11 to the 8.2.x line, for release as 8.2.1.

The tests compare the package against the Unicode data of the PHP build they run on. Windows PHP 8.4 ships newer Unicode data than Ubuntu, which exposed two gaps that apply to this line as well:

  • Digits: 11 decimal digit sets added in Unicode 15 to 17 were missing from src/Resources/numbers.php (Kawi, Nag Mundari, Garay, Sunuwar, Gurung Khema, Kirat Rai, Ol Onal, Tolong Siki, Myanmar Pa-O and Eastern Pwo Karen, and outlined digits), so they were not converted to ASCII digits. The table now matches Unicode 17 exactly: every decimal digit maps, and every entry is a real zero.
  • NFC fast path: UnicodeNormalizer::MAY_CHANGE_UNDER_NFC missed 9 Tulu-Tigalari, Gurung Khema and Kirat Rai characters from Unicode 16. When PCRE uses older Unicode data than ext-intl, text in those scripts skipped normalization. Both lists were derived from the official Unicode 17 data files.

The CHANGELOG has a 8.2.1 entry.

@MoamenEltouny MoamenEltouny self-assigned this Oct 6, 2026
@MoamenEltouny
MoamenEltouny merged commit e23db77 into 8.2.x Oct 6, 2026
7 checks passed
@MoamenEltouny
MoamenEltouny deleted the backport/unicode-17-8.2.x branch October 6, 2026 19:18
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