From ac596798e808b971edad48c78d9539459dd8e9d2 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Wed, 22 Mar 2023 15:07:48 -0700 Subject: [PATCH] ICU-22270 Fix hex number formatting in icuexportdata --- icu4c/source/tools/icuexportdata/icuexportdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/tools/icuexportdata/icuexportdata.cpp b/icu4c/source/tools/icuexportdata/icuexportdata.cpp index 32673282fd97..eab7168d7072 100644 --- a/icu4c/source/tools/icuexportdata/icuexportdata.cpp +++ b/icu4c/source/tools/icuexportdata/icuexportdata.cpp @@ -164,7 +164,7 @@ void dumpBinaryProperty(UProperty uproperty, FILE* f) { fputs("[[binary_property]]\n", f); fprintf(f, "long_name = \"%s\"\n", fullPropName); if (shortPropName) fprintf(f, "short_name = \"%s\"\n", shortPropName); - fprintf(f, "uproperty_discr = %X\n", uproperty); + fprintf(f, "uproperty_discr = 0x%X\n", uproperty); dumpPropertyAliases(uproperty, f); usrc_writeUnicodeSet(f, uset, UPRV_TARGET_SYNTAX_TOML); }