test: set LC_ALL to known good value
Set the locale to a known good value because it affects ICU's date string formatting. Setting LC_ALL needs to happen before the first call to `icu::Locale::getDefault()` because ICU caches the result. Fixes: https://github.com/nodejs/node/issues/27856 PR-URL: https://github.com/nodejs/node/pull/28096 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
This commit is contained in:
parent
1b3eac4c7d
commit
2bb93e1108
@ -1,5 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
// Set the locale to a known good value because it affects ICU's date string
|
||||
// formatting. Setting LC_ALL needs to happen before the first call to
|
||||
// `icu::Locale::getDefault()` because ICU caches the result.
|
||||
process.env.LC_ALL = 'C';
|
||||
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user