Commit 35d6661
deps: cherry-pick 6989b3f6d7 from V8 upstream
Original commit message:
Fix default Intl language tag handling
With certain ICU data bundles (such as the Node.js "small-icu"),
%GetDefaultICULocale() may return a more specific language tag (e.g.
"en-US") than what's available (e.g. "en"). In those cases, consider the
more specific language tag supported.
This CL also resolves the following Node.js issue:
#15223
Bug: v8:7024
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ifda0776b3418734d5caa8af4e50c17cda95add73
Reviewed-on: https://chromium-review.googlesource.com/668350
Commit-Queue: Daniel Ehrenberg <littledan@chromium.org>
Reviewed-by: Daniel Ehrenberg <littledan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52716}
PR-URL: #20826
Fixes: #15223
Refs: v8/v8@6989b3f
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 4e788dc commit 35d6661Copy full SHA for 35d6661
File tree
Expand file treeCollapse file tree
12 files changed
+119
-46
lines changedOpen diff view settings
Filter options
- deps/v8
- src/js
- test
- intl
- break-iterator
- collator
- date-format
- number-format
- mjsunit/regress
Expand file treeCollapse file tree
12 files changed
+119
-46
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
Collapse file
+59-30Lines changed: 59 additions & 30 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
152 | 152 | |
153 | 153 | |
154 | 154 | |
155 | | - |
| 155 | + |
156 | 156 | |
157 | 157 | |
158 | 158 | |
159 | | - |
160 | | - |
161 | | - |
162 | | - |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
| 159 | + |
167 | 160 | |
168 | 161 | |
169 | 162 | |
| ||
434 | 427 | |
435 | 428 | |
436 | 429 | |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
| 454 | + |
| 455 | + |
| 456 | + |
| 457 | + |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
437 | 472 | |
438 | 473 | |
439 | 474 | |
| ||
446 | 481 | |
447 | 482 | |
448 | 483 | |
449 | | - |
450 | | - |
451 | | - |
452 | | - |
453 | | - |
454 | | - |
455 | | - |
456 | | - |
457 | | - |
458 | | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | | - |
464 | | - |
465 | | - |
466 | | - |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
467 | 497 | |
468 | 498 | |
469 | 499 | |
470 | 500 | |
471 | | - |
472 | | - |
473 | | - |
| 501 | + |
| 502 | + |
474 | 503 | |
475 | 504 | |
476 | 505 | |
|
Collapse file
deps/v8/test/intl/assert.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/assert.js+41Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
132 | 132 | |
133 | 133 | |
134 | 134 | |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
135 | 145 | |
136 | 146 | |
137 | 147 | |
| ||
189 | 199 | |
190 | 200 | |
191 | 201 | |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
Collapse file
deps/v8/test/intl/break-iterator/default-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/break-iterator/default-locale.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
41 | | - |
| 40 | + |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
deps/v8/test/intl/break-iterator/wellformed-unsupported-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/break-iterator/wellformed-unsupported-locale.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
Collapse file
deps/v8/test/intl/collator/default-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/collator/default-locale.js+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
41 | | - |
| 40 | + |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
52 | | - |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
Collapse file
deps/v8/test/intl/collator/wellformed-unsupported-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/collator/wellformed-unsupported-locale.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
Collapse file
deps/v8/test/intl/date-format/default-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/date-format/default-locale.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
41 | | - |
| 40 | + |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
Collapse file
deps/v8/test/intl/date-format/wellformed-unsupported-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/date-format/wellformed-unsupported-locale.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
Collapse file
deps/v8/test/intl/number-format/default-locale.js
Copy file name to clipboardExpand all lines: deps/v8/test/intl/number-format/default-locale.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
41 | | - |
| 40 | + |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
0 commit comments