From 9c78cb83d07cf576584f4096201552c52811e676 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 10 Mar 2021 18:00:51 -0800 Subject: [PATCH] Propagate LANG environment variable to lint in RBE Without LANG, lint's text output is ASCII instead of UTF-8, causing differences between local and remote execution. Bug: 181681346 Bug: 182415460 Test: m USE_RBE=true RBE_LINT=true Change-Id: I0ad54aa731582c9b54abb80f50ba508c75992b91 --- java/lint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/lint.go b/java/lint.go index f8a518054..9f677db3a 100644 --- a/java/lint.go +++ b/java/lint.go @@ -422,6 +422,7 @@ func (l *linter) lint(ctx android.ModuleContext) { "ANDROID_SDK_HOME", "SDK_ANNOTATIONS", "LINT_OPTS", + "LANG", }, Platform: map[string]string{remoteexec.PoolKey: pool}, }).NoVarTemplate(ctx.Config()))