| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 67b41b1 commit 31dd253
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1022,7 +1022,7 @@ uprv_convertToPosix(uint32_t hostid, char *posixID, int32_t posixIDCapacity, UEr | |||
| 1022 | 1022 | // GetLocaleInfo() maps such LCID to "ku". However, CLDR uses "ku" for | |
| 1023 | 1023 | // Northern Kurdish and "ckb" for Central Kurdish. For this reason, we cannot | |
| 1024 | 1024 | // use the Windows API to resolve locale ID for this specific case. | |
| 1025 | - if (hostid & 0x3FF != 0x92) { | ||
| 1025 | + if ((hostid & 0x3FF) != 0x92) { | ||
| 1026 | 1026 | int32_t tmpLen = 0; | |
| 1027 | 1027 | char locName[157]; /* ULOC_FULLNAME_CAPACITY */ | |
| 1028 | 1028 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,7 +200,7 @@ appendUChar(uint8_t *dest, int32_t destIndex, int32_t destCapacity, UChar c) { | |||
| 200 | 200 | return -1; // integer overflow | |
| 201 | 201 | } | |
| 202 | 202 | int32_t limit=destIndex+length; | |
| 203 | - if(limit<destCapacity) { | ||
| 203 | + if(limit<=destCapacity) { | ||
| 204 | 204 | U8_APPEND_UNSAFE(dest, destIndex, c); | |
| 205 | 205 | } | |
| 206 | 206 | return limit; | |
@@ -422,6 +422,9 @@ ucasemap_internalUTF8ToTitle(const UCaseMap *csm, | |||
| 422 | 422 | src, &csc, | |
| 423 | 423 | titleLimit, idx, | |
| 424 | 424 | pErrorCode); | |
| 425 | + if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) { | ||
| 426 | + *pErrorCode=U_ZERO_ERROR; | ||
| 427 | + } | ||
| 425 | 428 | if(U_FAILURE(*pErrorCode)) { | |
| 426 | 429 | return destIndex; | |
| 427 | 430 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,7 @@ | |||
| 64 | 64 | * This value will change in the subsequent releases of ICU | |
| 65 | 65 | * @stable ICU 2.6 | |
| 66 | 66 | */ | |
| 67 | - #define U_ICU_VERSION_MINOR_NUM 1 | ||
| 67 | + #define U_ICU_VERSION_MINOR_NUM 2 | ||
| 68 | 68 | ||
| 69 | 69 | /** The current ICU patchlevel version as an integer. | |
| 70 | 70 | * This value will change in the subsequent releases of ICU | |
@@ -119,7 +119,7 @@ | |||
| 119 | 119 | * This value will change in the subsequent releases of ICU | |
| 120 | 120 | * @stable ICU 2.4 | |
| 121 | 121 | */ | |
| 122 | - #define U_ICU_VERSION "58.1" | ||
| 122 | + #define U_ICU_VERSION "58.2" | ||
| 123 | 123 | ||
| 124 | 124 | /** The current ICU library major/minor version as a string without dots, for library name suffixes. | |
| 125 | 125 | * This value will change in the subsequent releases of ICU | |
@@ -131,7 +131,7 @@ | |||
| 131 | 131 | /** Data version in ICU4C. | |
| 132 | 132 | * @internal ICU 4.4 Internal Use Only | |
| 133 | 133 | **/ | |
| 134 | - #define U_ICU_DATA_VERSION "58.1" | ||
| 134 | + #define U_ICU_DATA_VERSION "58.2" | ||
| 135 | 135 | #endif /* U_HIDE_INTERNAL_API */ | |
| 136 | 136 | ||
| 137 | 137 | /*=========================================================================== | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -305,6 +305,9 @@ ustrcase_internalToTitle(const UCaseMap *csm, | |||
| 305 | 305 | src, &csc, | |
| 306 | 306 | titleLimit, idx, | |
| 307 | 307 | pErrorCode); | |
| 308 | + if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) { | ||
| 309 | + *pErrorCode=U_ZERO_ERROR; | ||
| 310 | + } | ||
| 308 | 311 | if(U_FAILURE(*pErrorCode)) { | |
| 309 | 312 | return destIndex; | |
| 310 | 313 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,8 @@ | |||
| 60 | 60 | # endif | |
| 61 | 61 | #endif | |
| 62 | 62 | ||
| 63 | - #if U_USE_STRTOD_L && !U_PLATFORM_USES_ONLY_WIN32_API | ||
| 64 | - # if U_PLATFORM == U_PF_CYGWIN | ||
| 63 | + #if U_USE_STRTOD_L | ||
| 64 | + # if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN | ||
| 65 | 65 | # include <locale.h> | |
| 66 | 66 | # else | |
| 67 | 67 | # include <xlocale.h> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -258,7 +258,7 @@ void ScriptSet::setScriptExtensions(UChar32 codePoint, UErrorCode& status) { | |||
| 258 | 258 | ||
| 259 | 259 | while (TRUE) { | |
| 260 | 260 | script_count = uscript_getScriptExtensions( | |
| 261 | - codePoint, scripts.getAlias(), FIRST_GUESS_SCRIPT_CAPACITY, &internalStatus); | ||
| 261 | + codePoint, scripts.getAlias(), scripts.getCapacity(), &internalStatus); | ||
| 262 | 262 | if (internalStatus == U_BUFFER_OVERFLOW_ERROR) { | |
| 263 | 263 | // Need to allocate more space | |
| 264 | 264 | if (scripts.resize(script_count) == NULL) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -646,13 +646,6 @@ uspoof_getSkeletonUnicodeString(const USpoofChecker *sc, | |||
| 646 | 646 | return dest; | |
| 647 | 647 | } | |
| 648 | 648 | ||
| 649 | - // Check that at least one of the CONFUSABLE flags is turned on. If not, | ||
| 650 | - // return an error. | ||
| 651 | - if ((This->fChecks & USPOOF_CONFUSABLE) == 0) { | ||
| 652 | - *status = U_ILLEGAL_ARGUMENT_ERROR; | ||
| 653 | - return dest; | ||
| 654 | - } | ||
| 655 | - | ||
| 656 | 649 | UnicodeString nfdId; | |
| 657 | 650 | gNfdNormalizer->normalize(id, nfdId, *status); | |
| 658 | 651 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments