1 https://github.com/unicode-org/icu/commit/7bc1b89eb83abc0495e30da5efda8871ff0ab81c
3 --- icu/source/tools/gendict/gendict.cpp.orig
4 +++ icu/source/tools/gendict/gendict.cpp
6 fprintf(f, "transform_type = \"%s\"\n", isOffset ? "offset" : "none");
7 fprintf(f, "transform_offset = %d\n", offset);
9 - usrc_writeArray(f, "trie_data = [\n ", outData, isBytesTrie ? 8 : 16, outDataSize, " ", "\n]\n");
10 + int32_t outDataWidth = isBytesTrie ? 8 : 16;
11 + int32_t outDataLength = isBytesTrie ? outDataSize : outDataSize / U_SIZEOF_UCHAR;
12 + usrc_writeArray(f, "trie_data = [\n ", outData, outDataWidth, outDataLength, " ", "\n]\n");