Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! Some platforms need the full env
  • Loading branch information
refack committed Apr 25, 2019
commit d93152d8a2fccd423c6ad18a62596defc372e4b3
15 changes: 9 additions & 6 deletions test/parallel/test-intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ if (!common.hasIntl) {
// `ffi` ligature (contraction)
assert.strictEqual(coll.compare('\ufb03', 'ffi'), 0);

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