[Libreoffice-commits] core.git: cui/source
Caolán McNamara
caolanm at redhat.com
Fri Jul 28 11:27:56 UTC 2017
cui/source/dialogs/cuicharmap.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 351fd8f027907b079dad19c0c34b0b5fff9b27b1
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 28 12:26:16 2017 +0100
add comment on max char name length
Change-Id: I9e542f6e131de1a05dd54a84a260453ea2edcb62
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))
More information about the Libreoffice-commits
mailing list