Skip to content

Commit 4e64646

Browse files
ai: apply changes for #506 (1 review thread)
Addresses: - #3875978525 at lib/kernel/KernelAuth.ts:624 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
1 parent 8c661e6 commit 4e64646

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎lib/DBSQLClient.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,10 @@ export default class DBSQLClient extends EventEmitter implements IDBSQLClient, I
521521
*/
522522
private getLocaleName(): string {
523523
try {
524-
// Try to get from environment variables
525-
const lang = process.env.LANG || process.env.LC_ALL || process.env.LC_MESSAGES || '';
524+
// Try to get from environment variables. Use POSIX precedence
525+
// (LC_ALL > LC_MESSAGES > LANG) so this matches the kernel path's
526+
// getLocaleName and telemetry localeName stays backend-invariant.
527+
const lang = process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || '';
526528
if (lang) {
527529
// LANG format is typically "en_US.UTF-8", extract "en_US"
528530
const match = lang.match(/^([a-z]{2}_[A-Z]{2})/);

0 commit comments

Comments
 (0)