Skip to content

Commit

Permalink
fixup! Some platforms need the full env
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Apr 25, 2019
1 parent c369ef0 commit d93152d
Showing 1 changed file with 9 additions and 6 deletions.
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))
);
}
}

0 comments on commit d93152d

Please sign in to comment.