Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1659)

Unified Diff: icu52/patches/uloc.patch

Issue 224943002: icu local change part1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: function indentation changed Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu52/patches/uconv.patch ('k') | icu52/patches/unihan.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu52/patches/uloc.patch
===================================================================
--- icu52/patches/uloc.patch (revision 261238)
+++ icu52/patches/uloc.patch (working copy)
@@ -1,55 +0,0 @@
-Index: source/common/uloc.c
-===================================================================
---- source/common/uloc.c (revision 113138)
-+++ source/common/uloc.c (working copy)
-@@ -713,7 +713,7 @@
- pos++;
- } else {
- i = (int32_t)uprv_strlen(equalSign);
-- while(equalSign[i-1] == ' ') {
-+ while(i && equalSign[i-1] == ' ') {
- i--;
- }
- keywordList[numKeywords].valueLen = i;
-@@ -1797,7 +1797,7 @@
- int32_t variantLen = _deleteVariant(variant, uprv_min(variantSize, (nameCapacity-len)), variantToCompare, n);
- len -= variantLen;
- if (variantLen > 0) {
-- if (name[len-1] == '_') { /* delete trailing '_' */
-+ if (len > 0 && name[len-1] == '_') { /* delete trailing '_' */
- --len;
- }
- addKeyword = VARIANT_MAP[j].keyword;
-@@ -1805,7 +1805,7 @@
- break;
- }
- }
-- if (name[len-1] == '_') { /* delete trailing '_' */
-+ if (len > 0 && len <= nameCapacity && name[len-1] == '_') { /* delete trailing '_' */
- --len;
- }
- }
-Index: source/common/uresbund.c
-===================================================================
---- source/common/uresbund.c (revision 122103)
-+++ source/common/uresbund.c (working copy)
-@@ -319,7 +319,7 @@
- UResourceDataEntry *r = NULL;
- UResourceDataEntry find;
- /*int32_t hashValue;*/
-- char name[96];
-+ char name[100];
- char aliasName[100] = { 0 };
- int32_t aliasLen = 0;
- /*UBool isAlias = FALSE;*/
-@@ -528,8 +528,8 @@
- UBool hasChopped = TRUE;
- UBool usingUSRData = U_USE_USRDATA && ( path == NULL || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
-
-- char name[96];
-- char usrDataPath[96];
-+ char name[100];
-+ char usrDataPath[100];
-
- initCache(status);
-
« no previous file with comments | « icu52/patches/uconv.patch ('k') | icu52/patches/unihan.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698