summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-11-30 20:49:03 +0100
committerBen Gamari <ben@smart-cactus.org>2017-12-11 12:44:47 -0500
commitabd5db6072218ada2b4a21177f5200ea0d3273a0 (patch)
tree67dae5203048f925cd48261e5bbe50c7476961ee /testsuite/driver
parent8361b2c5a9f7a00f0024f44a43b851998ae41e33 (diff)
downloadhaskell-abd5db6072218ada2b4a21177f5200ea0d3273a0.tar.gz
Only look for locales of the form LL.VV
Because in recent RHEL7 suddenly locales like `bokmål` pop up, which screw up reading-in of ASCII strings a line later. This additional criterion reliably eliminates those unicode characters.
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/runtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index 9f74494601..db17f3b3c5 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -151,7 +151,7 @@ else:
h.close()
if v == '':
# We don't, so now see if 'locale -a' works
- h = os.popen('locale -a', 'r')
+ h = os.popen('locale -a | grep -F .', 'r')
v = h.read()
h.close()
if v != '':