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

Unified Diff: patches/locid.patch

Issue 799643002: Add the patch file for the previous CL (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 6 years 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 | « README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/locid.patch
diff --git a/patches/locid.patch b/patches/locid.patch
new file mode 100644
index 0000000000000000000000000000000000000000..cf00bef2ba77aa754a89b2a1c0818b197f538b04
--- /dev/null
+++ b/patches/locid.patch
@@ -0,0 +1,18 @@
+Index: source/common/locid.cpp
+===================================================================
+--- source/common/locid.cpp (revision 36834)
++++ source/common/locid.cpp (working copy)
+@@ -484,6 +484,13 @@
+ /* preset all fields to empty */
+ language[0] = script[0] = country[0] = 0;
+
++ // Need to reset baseName. Otherwise, when a Locale object created with
++ // the default constructor is changed with setFromPOSIXID() later
++ // (e.g. locales obtained with getAvailableLocales()),
++ // baseName will be still that of the default locale instead of one
++ // corresponding to localeID.
++ baseName = NULL;
++
+ // "canonicalize" the locale ID to ICU/Java format
+ err = U_ZERO_ERROR;
+ length = canonicalize ?
« no previous file with comments | « README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698