deps: backport ICU-20575 to fix err/crasher

- Floating patch for ICU 64.x
- includes test case

ICU Bug: https://unicode-org.atlassian.net/browse/ICU-20575
Backport of: https://github.com/unicode-org/icu/pull/634
Fixes: https://github.com/nodejs/node/issues/27418

PR-URL: https://github.com/nodejs/node/pull/27435
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Steven R. Loomis 2019-04-25 09:09:42 -07:00 committed by Michaël Zasso
parent 617c55ebe5
commit 31ac8b9080
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
2 changed files with 2426 additions and 0 deletions

View File

@ -136,4 +136,15 @@ if (!common.hasIntl) {
common.mustCall((e) => assert.ifError(e))
);
}
{
// Regression test for https://github.com/nodejs/node/issues/27418
const env = { ...process.env, LC_ALL: 'fr@EURO' };
execFile(
process.execPath,
['-p', 'new Intl.NumberFormat().resolvedOptions().locale'],
{ env },
common.mustCall((e) => assert.ifError(e))
);
}
}

File diff suppressed because it is too large Load Diff