Skip to content

Commit

Permalink
ICU-22758 Handle singleton decompostion to backward-combining BMP sta…
Browse files Browse the repository at this point in the history
…rter

The don't exist as of Unicode 16 alpha.
  • Loading branch information
hsivonen committed May 3, 2024
1 parent 89a5bd0 commit 426c310
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions icu4c/source/tools/icuexportdata/icuexportdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,13 @@ void computeDecompositions(const char* basename,
nonInitialStarter = true;
}
}
if (len == 1) {
// The format doesn't allow for length 1 for BMP,
// so if these ever occur, they need to be promoted
// to wider storage. As of Unicode 16 alpha, this
// case does not arise.
supplementary = true;
}
if (!supplementary) {
if (len > LONGEST_ENCODABLE_LENGTH_16 || !len || len == 1) {
if (len == 18 && c == 0xFDFA) {
Expand Down

0 comments on commit 426c310

Please sign in to comment.