[v2,2/3] Fix warnings in gdb_buildall.sh

Message ID 20260831074155.3500918-3-tdevries@suse.de
State New
Headers
Series Three gdb_buildall.sh fixes |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply

Commit Message

Tom de Vries Aug. 31, 2026, 7:41 a.m. UTC
  I ran into these warnings with gdb/gdb_buildall.sh:
...
./src/gdb/gdb_buildall.sh: line 27: warning: setlocale: LC_ALL: \
  cannot change locale (c): No such file or directory
./src/gdb/gdb_buildall.sh: line 27: warning: setlocale: LC_ALL: \
  cannot change locale (c): No such file or directory
...

Fix this by using 'C' instead of 'c'.
---
 gdb/gdb_buildall.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/gdb_buildall.sh b/gdb/gdb_buildall.sh
index 65935ae10b2..57211ca887a 100644
--- a/gdb/gdb_buildall.sh
+++ b/gdb/gdb_buildall.sh
@@ -23,8 +23,8 @@ 
 # Based on gdb_mbuild.sh from Richard Earnshaw.
 
 
-LANG=c ; export LANG
-LC_ALL=c ; export LC_ALL
+LANG=C ; export LANG
+LC_ALL=C ; export LC_ALL
 
 # Prints a usage message.
 usage()