summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2010-07-29 14:18:56 +0000
committerPedro Alves <pedro@codesourcery.com>2010-07-29 14:18:56 +0000
commit3358514aa7178f075cef16c396803a6411bbcb07 (patch)
treeaab625f5559f7070837e1aebe59d38d92d676a7d /gdb/testsuite/lib
parent6618ea3a99a036a40dab1e0b41777239d82b76e5 (diff)
downloadgdb-3358514aa7178f075cef16c396803a6411bbcb07.tar.gz
* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
environment.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 2f57ffb1c68..04e00e2007f 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2687,6 +2687,11 @@ proc gdb_init { args } {
set banned_variables_traced 1
}
+ # We set LC_ALL and LANG to C so that we get the same messages as
+ # expected.
+ setenv LC_ALL C
+ setenv LANG C
+
return [eval default_gdb_init $args];
}