Use the root locale instead of the system default locale.
ChromeStringCanonicalizer does case and diacritic insensitive string comparison through an ICU Collator. To get general Unicode character rules, the root locale should be used. The system default locale is different from system to system, and using that will cause the code to break when executed on a system where it doesn't have the properties that this code assumes. This change also adds #include statemens for all ICU header files from which the code in this file uses declarations. R=rouslan@chromium.org BUG= Review URL: https://codereview.chromium.org/275913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269601 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment