Skip to content

Unicode 18 UCD tables - #6448

Open
Charlie Lin (clin1234) wants to merge 18 commits into
microsoft:mainfrom
clin1234:unicode18
Open

Charlie Lin (clin1234) wants to merge 18 commits into
microsoft:mainfrom
clin1234:unicode18

Conversation

@clin1234

Copy link
Copy Markdown
Contributor

Regenerate UCD tables for <format> and Grapheme Cluster breaks

Getting closer to 18's final release on the 16th: https://www.unicode.org/versions/beta-18.0.0.html

Claude was only used to discover that the Chisoi block was unassigned; all subsequent effort consisted of manually pulling updated UCD, regenerating relevant files, and manually-inspecting them for correctness.

Copilot AI balanced review requested due to automatic review settings September 13, 2026 05:36
@clin1234
Charlie Lin (clin1234) requested a review from a team as a code owner September 13, 2026 05:36
@github-project-automation github-project-automation Bot moved this to Initial Review in STL Code Reviews Sep 13, 2026
@azure-pipelines

This comment was marked as resolved.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated grapheme expectations conflict with the unchanged GB9c implementation.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates Unicode-dependent formatting tables and grapheme-cluster test data to Unicode 18.0.0.

Changes:

  • Updates Unicode source references.
  • Regenerates formatting UCD tables.
  • Regenerates grapheme-break test vectors.
File summaries
File Description
tools/unicode_properties_parse/unicode_properties_data_gen.py Updates Unicode 18 UCD sources.
tools/unicode_properties_parse/grapheme_break_test_data_gen.py Updates the Unicode 18 grapheme-test source.
tests/std/tests/P0645R10_text_formatting_grapheme_clusterization/test.cpp Adds regenerated Unicode 18 grapheme data; GB9c expectations require implementation updates, and generated markers should be preserved.
stl/inc/__msvc_format_ucd_tables.hpp Contains regenerated Unicode 18 formatting tables.
Review details

Suppressed comments (1)

tests/std/tests/P0645R10_text_formatting_grapheme_clusterization/test.cpp:16

  • This regeneration removes the // Generator: and // Beginning of generated data markers from the generated section, while the matching // End of generated data marker remains at line 1175. Please preserve the paired delimiters (and update cpp_template if these are meant to be regenerated) so the checked-in file does not advertise an unmatched generated region.
// GraphemeBreakTest-18.0.0.txt
// Date: 2026-06-12, 00:44:16 GMT
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 13, 2026 07:11

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings September 13, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The GB9c matcher has a correctness issue and grapheme iteration performs a redundant property lookup.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

Comment thread stl/inc/format Resolved
Comment thread stl/inc/format Resolved
Copilot AI review requested due to automatic review settings September 13, 2026 14:55

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

@amlel-el-mahrouss

This comment was marked as resolved.

@clin1234

This comment was marked as resolved.

@amlel-el-mahrouss

This comment was marked as resolved.

amlel-el-mahrouss

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings September 13, 2026 15:45
unknown and others added 16 commits November 18, 2026 13:02
Regenerate from newer Unicode 18.0.0 revisions of the UCD files:
DerivedGeneralCategory, EastAsianWidth and GraphemeBreakProperty
(2026-06-29), DerivedCoreProperties (2026-08-07), and GraphemeBreakTest
(2026-06-12). This is not a Unicode version bump; everything stays 18.0.0.

The only content change is that the Chisoi block (U+16D80..U+16DA9) has
been unassigned again, which shrinks four tables:

  _Grapheme_Break_property_data          1394 -> 1392
  _Indic_Conjunct_Break_property_data     485 -> 483
  __printable_property_data               743 -> 741
  _Grapheme_Extend_property_data          391 -> 389

_Extended_Pictographic_property_data and _Width_estimate_intervals_v2 are
unchanged (the Chisoi code points were East_Asian_Width=N). The changes
to GraphemeBreakTest.txt are cosmetic - the rule numbers in the trailing
comments were renumbered - so the 853 test cases in the clusterization
test are identical and only the date comment moves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: S. B. Tam <cpplearner@outlook.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Missing Unicode 18 UCD inputs prevent comparison of regenerated property values and conformance fixtures against authoritative sources, requiring maintainer verification.

2 open issues

Review effort: Balanced

@clin1234

Copy link
Copy Markdown
Contributor Author

Copilot here is less than helpful, as usual...

Copilot AI balanced review requested due to automatic review settings November 18, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Unicode 18 formatting and grapheme-cluster updates.

1 open issue
1 resolved since last review

Review effort: Balanced

@clin1234

This comment was marked as resolved.

@clin1234

Copy link
Copy Markdown
Contributor Author

And once again, I firmly believe Copilot is wrong to flag such issue. It's already been resolved by prior commits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

Projects

Status: Maintainer Review

Development

Successfully merging this pull request may close these issues.

6 participants