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

Unified Diff: patches/scriptset.patch

Issue 2442923002: ICU update to 58 part 2 (Closed)
Patch Set: apply more patches and updates; almost ready to roll Created 4 years, 2 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 | « patches/remove_si.patch ('k') | patches/tzdetect.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/scriptset.patch
diff --git a/patches/scriptset.patch b/patches/scriptset.patch
new file mode 100644
index 0000000000000000000000000000000000000000..6fcd5b0406843209475a0096c464a1333593281d
--- /dev/null
+++ b/patches/scriptset.patch
@@ -0,0 +1,13 @@
+diff --git a/source/i18n/scriptset.cpp b/source/i18n/scriptset.cpp
+index 5a42535..ff853b8 100644
+--- a/source/i18n/scriptset.cpp
++++ b/source/i18n/scriptset.cpp
+@@ -258,7 +258,7 @@ void ScriptSet::setScriptExtensions(UChar32 codePoint, UErrorCode& status) {
+
+ while (TRUE) {
+ script_count = uscript_getScriptExtensions(
+- codePoint, scripts.getAlias(), FIRST_GUESS_SCRIPT_CAPACITY, &internalStatus);
++ codePoint, scripts.getAlias(), scripts.getCapacity(), &internalStatus);
+ if (internalStatus == U_BUFFER_OVERFLOW_ERROR) {
+ // Need to allocate more space
+ if (scripts.resize(script_count) == NULL) {
« no previous file with comments | « patches/remove_si.patch ('k') | patches/tzdetect.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698