Skip to content

Commit 2bb93e1

Browse files
bnoordhuisTrott
authored andcommitted
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: #27856 PR-URL: #28096 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vladimir de Turckheim <[email protected]>
1 parent 1b3eac4 commit 2bb93e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-process-env-tz.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
'use strict';
22

3+
// Set the locale to a known good value because it affects ICU's date string
4+
// formatting. Setting LC_ALL needs to happen before the first call to
5+
// `icu::Locale::getDefault()` because ICU caches the result.
6+
process.env.LC_ALL = 'C';
7+
38
const common = require('../common');
49
const assert = require('assert');
510

0 commit comments

Comments
 (0)