From 35e7288149b7b03f493f903d28168aa53a1e04cb Mon Sep 17 00:00:00 2001
From: Douglas Raillard <douglas.raillard@arm.com>
Date: Mon, 26 Jun 2023 10:24:26 +0100
Subject: [PATCH] utils/android: Use LC_ALL for adb commands

Ensures that adb commands are executed with english locale since we
sometimes match on the output.
---
 devlib/utils/android.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devlib/utils/android.py b/devlib/utils/android.py
index cc6c7e4..0b4b074 100755
--- a/devlib/utils/android.py
+++ b/devlib/utils/android.py
@@ -699,7 +699,7 @@ def get_adb_command(device, command, adb_server=None):
     if adb_server != None:
         device_string = ' -H {}'.format(adb_server)
     device_string += ' -s {}'.format(device) if device else ''
-    return "adb{} {}".format(device_string, command)
+    return "LC_ALL=C adb{} {}".format(device_string, command)
 
 
 def adb_command(device, command, timeout=None, adb_server=None):