From 2998f27f703282359f6389d1c2d8758fc6a14955 Mon Sep 17 00:00:00 2001 From: Richie Foreman Date: Sun, 17 Aug 2025 12:43:21 -0400 Subject: chore(compiler): Enable strict property access TS compiler flag. (#6255) Co-authored-by: Jacob Richman --- packages/core/src/utils/systemEncoding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/core/src/utils/systemEncoding.ts') diff --git a/packages/core/src/utils/systemEncoding.ts b/packages/core/src/utils/systemEncoding.ts index f162c223..ba632d41 100644 --- a/packages/core/src/utils/systemEncoding.ts +++ b/packages/core/src/utils/systemEncoding.ts @@ -79,7 +79,7 @@ export function getSystemEncoding(): string | null { // system encoding. However, these environment variables might not always // be set or accurate. Handle cases where none of these variables are set. const env = process.env; - let locale = env.LC_ALL || env.LC_CTYPE || env.LANG || ''; + let locale = env['LC_ALL'] || env['LC_CTYPE'] || env['LANG'] || ''; // Fallback to querying the system directly when environment variables are missing if (!locale) { -- cgit v1.2.3