diff options
author | Steven R. Loomis <srloomis@us.ibm.com> | 2016-12-29 16:57:33 -0800 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2017-01-06 15:38:29 -0500 |
commit | f2d3afbd88d65fd6530487cfaf592e2ca22db319 (patch) | |
tree | 25d0f69390f8d25534a7a5a2d1d08902e374ef63 /deps/v8/src/runtime | |
parent | 6d3c5b78c843335c822041aa07487078fc13e61f (diff) | |
download | android-node-v8-f2d3afbd88d65fd6530487cfaf592e2ca22db319.tar.gz android-node-v8-f2d3afbd88d65fd6530487cfaf592e2ca22db319.tar.bz2 android-node-v8-f2d3afbd88d65fd6530487cfaf592e2ca22db319.zip |
deps: cherry-pick 2f5da9a from V8 upstream
Original commit message:
Fix the uppercasing of U+00E7(ç) and U+00F7(÷)
Due to a typo in runtime-i18n.js, 'ç'(U+00E7) was not uppercased
while '÷'(U+00F7) was incorrectly uppercased to '×'(U+00D7).
Add a comprehensive test for Latin-1 supplemental block
(U+00A0 ~ U+00FF). (they're special-cased for speed-up and
needs to have a test for the range.).
TEST=intl/general/case-mapping
BUG=v8:5681
Review-Url: https://codereview.chromium.org/2533033003
Cr-Commit-Position: refs/heads/master@{#41331}
PR-URL: https://github.com/nodejs/node/pull/9828
Fixes: https://github.com/nodejs/node/issues/9785
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/src/runtime')
-rw-r--r-- | deps/v8/src/runtime/runtime-i18n.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/runtime/runtime-i18n.cc b/deps/v8/src/runtime/runtime-i18n.cc index 8b9d92ec00..c5577dadaf 100644 --- a/deps/v8/src/runtime/runtime-i18n.cc +++ b/deps/v8/src/runtime/runtime-i18n.cc @@ -931,7 +931,7 @@ inline uint16_t ToASCIIUpper(uint16_t ch) { inline uint16_t ToLatin1Upper(uint16_t ch) { DCHECK(ch != 0xDF && ch != 0xB5 && ch != 0xFF); return ch & - ~(((ch >= 'a' && ch <= 'z') || (((ch & 0xE0) == 0xE0) && ch != 0xE7)) + ~(((ch >= 'a' && ch <= 'z') || (((ch & 0xE0) == 0xE0) && ch != 0xF7)) << 5); } |