Skip to content

Commit 2566e66

Browse files
committed
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: unicode-org/icu#634 Fixes: nodejs#27418
1 parent eca71e5 commit 2566e66

File tree

2 files changed

+2425
-0
lines changed

2 files changed

+2425
-0
lines changed

test/parallel/test-intl.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'use strict';
2323
const common = require('../common');
2424
const assert = require('assert');
25+
const { execFile } = require('child_process');
2526

2627
// Does node think that i18n was enabled?
2728
let enablei18n = process.config.variables.v8_enable_i18n_support;
@@ -125,4 +126,13 @@ if (!common.hasIntl) {
125126
assert.strictEqual(coll.compare('Bluebird', 'bluebird'), 0);
126127
// `ffi` ligature (contraction)
127128
assert.strictEqual(coll.compare('\ufb03', 'ffi'), 0);
129+
{
130+
// Regression test for https://github.com/nodejs/node/issues/27418
131+
const env = { ...process.env, LC_ALL: 'fr@EURO' };
132+
execFile(
133+
process.execPath, ['-p', 'new Intl.NumberFormat().resolvedOptions().locale'],
134+
{ env },
135+
common.mustCall((e) => assert.ifError(e))
136+
);
137+
}
128138
}

0 commit comments

Comments
 (0)