Skip to content

Commit d93152d

Browse files
committed
fixup! Some platforms need the full env
1 parent c369ef0 commit d93152d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/parallel/test-intl.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,13 @@ if (!common.hasIntl) {
127127
// `ffi` ligature (contraction)
128128
assert.strictEqual(coll.compare('\ufb03', 'ffi'), 0);
129129

130-
// Regression test for https://github.com/nodejs/node/issues/27379
131-
execFile(
132-
process.execPath, ['-p', 'new Date().toLocaleString()'],
133-
{ env: { LC_ALL: 'ja' }, encoding: 'utf-8' },
134-
common.mustCall((e) => assert.ifError(e))
135-
);
130+
{
131+
// Regression test for https://github.com/nodejs/node/issues/27379
132+
const env = { ...process.env, LC_ALL: 'ja' };
133+
execFile(
134+
process.execPath, ['-p', 'new Date().toLocaleString()'],
135+
{ env },
136+
common.mustCall((e) => assert.ifError(e))
137+
);
138+
}
136139
}

0 commit comments

Comments
 (0)