Skip to content

Commit

Permalink
deps: backport ICU-20575 to fix err/crasher
Browse files Browse the repository at this point in the history
- Floating patch for ICU 64.x
- includes test case

ICU Bug: https://unicode-org.atlassian.net/browse/ICU-20575
Backport of: unicode-org/icu#634
Fixes: #27418

PR-URL: #27435
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
srl295 authored and targos committed Apr 27, 2019
1 parent e922a22 commit 3282ccb
Show file tree
Hide file tree
Showing 2 changed files with 2,426 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/parallel/test-intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
);
}
}
Loading

0 comments on commit 3282ccb

Please sign in to comment.