# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/icu4c/hotfix-endianess.diff # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- source/tools/pkgdata/pkgdata.cpp 2023-12-09 03:30:05.000000000 +0100 +++ source/tools/pkgdata/pkgdata.cpp 2024-02-21 21:50:02.713084994 +0100 @@ -615,7 +615,7 @@ if(o->verbose) { fprintf(stdout, "# Writing package file %s ..\n", datFileNamePath); } - result = writePackageDatFile(datFileNamePath, o->comment, o->srcDir, o->fileListFiles->str, nullptr, U_CHARSET_FAMILY ? 'e' : U_IS_BIG_ENDIAN ? 'b' : 'l'); + result = writePackageDatFile(datFileNamePath, o->comment, o->srcDir, o->fileListFiles->str, nullptr, U_CHARSET_FAMILY ? 'e' : U_IS_BIG_ENDIAN ? 'l' : 'b'); if (result != 0) { fprintf(stderr,"Error writing package dat file.\n"); return result; --- source/tools/toolutil/pkg_genc.cpp 2023-12-09 03:30:05.000000000 +0100 +++ source/tools/toolutil/pkg_genc.cpp 2024-02-21 21:40:48.414138403 +0100 @@ -620,6 +621,8 @@ column=1; } + bitField = __builtin_bswap32(bitField); + if (bitField < 10) { /* It's a small number. Don't waste the space for 0x */ *(s++)=hexToStr[bitField]; Only in icu-release-74-2.fixed/icu4c/source/tools/tzcode: Makefile