summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-28 12:26:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-28 12:26:48 +0100
commit351fd8f027907b079dad19c0c34b0b5fff9b27b1 (patch)
tree411700f10956ab7c56a2f627ca596d1bfdc0dee3
parenta406bdc983122d3bbeaae298b6031fd615c0fbc1 (diff)
add comment on max char name length
Change-Id: I9e542f6e131de1a05dd54a84a260453ea2edcb62
-rw-r--r--cui/source/dialogs/cuicharmap.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 4cdb9284dcb4..b535fd95b525 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -663,6 +663,8 @@ void SvxCharacterMap::setCharName(sal_UCS4 nDecimalValue)
{
/* get the character name */
UErrorCode errorCode = U_ZERO_ERROR;
+ // icu has a private uprv_getMaxCharNameLength function which returns the max possible
+ // length of this property. Unicode 3.2 max char name length was 83
char buffer[100];
u_charName(nDecimalValue, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode);
if (U_SUCCESS(errorCode))