Skip to contentSkip to conversation

Use common language setting

PATCH In review David Chinner 2 participants 2 messages Apr 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use common language setting

Prevent output from being munged by language settings and causing golden output mismatches.

---
 xfstests/common.config |    4 ++++
 1 file changed, 4 insertions(+)
xfstests/common.config +4 -0
Index: xfs-cmds/xfstests/common.config
===================================================================
@@ -32,6 +32,10 @@
 #   validity or mountedness.
 #
 
+# all tests should use a common language setting to prevent golden
+# output mismatches.
+export LANG=C
+
 # Warning: don't put freeware before /usr/bsd on IRIX coz you'll
 #  get the wrong hostname and set your system name to -s  :)
 [ -d /usr/bsd ] && PATH=$PATH:/usr/bsd
#1 lore raw
Quoted 14 lines · David Chinner

Prevent output from being munged by language settings and causing golden output mismatches.

---
 xfstests/common.config |    4 ++++
 1 file changed, 4 insertions(+)

Index: xfs-cmds/xfstests/common.config
===================================================================
--- xfs-cmds.orig/xfstests/common.config 2008-03-27 11:49:53.000000000
+1100
+++ xfs-cmds/xfstests/common.config 2008-04-23 11:52:36.980546211 +1000

xfstests/common.config line 40

Quoted 9 lines
xfstests/common.config +4 -0
@@ -32,6 +32,10 @@
 #   validity or mountedness.
 #
+# all tests should use a common language setting to prevent golden
+# output mismatches.
+export LANG=C
+
 # Warning: don't put freeware before /usr/bsd on IRIX coz you'll
 #  get the wrong hostname and set your system name to -s  :)
 [ -d /usr/bsd ] && PATH=$PATH:/usr/bsd

Looks fine.