"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
regress: override locale settings
To:
gameoftrees@openbsd.org
Date:
Sat, 4 Mar 2023 01:33:13 +0100

Download raw body.

Thread
-portable has a number of contortions involving LC_TIME.  I suggest
we override any and all locale settings with LC_ALL=C for the
regression tests.  This has little effect on OpenBSD, but prevents
surprises elsewhere.

OK?

PS: Thomas, you can just use "sed -i '/LC_TIME/d' *.sh" to uncontort
     -portable.

PPS: I couldn't provoke any errors with a forced LC_TIME=de_DE.UTF-8
     on FreeBSD, so the LC_TIME dance may have been unnecessary anyway.

diff 1a4be2506adddbb055438ec1bf79188555514c1e a9bb0ab96aaeac3a3c335e9b6c61601a9130298a
commit - 1a4be2506adddbb055438ec1bf79188555514c1e
commit + a9bb0ab96aaeac3a3c335e9b6c61601a9130298a
blob - e81682dfcda6840765b24f4ec496fe031cb88a65
blob + e8dc379f3766f3126a73441a2e308fd844afe31e
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -28,6 +28,8 @@ export MALLOC_OPTIONS=S
 export GOT_IGNORE_GITCONFIG=1
 export GOT_VERSION_STR=`got --version | cut -d ' ' -f2`
 
+export LC_ALL=C
+
 export MALLOC_OPTIONS=S
 
 git_init()

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de