Commit abd5db60 authored by Gabor Greif's avatar Gabor Greif 💬 Committed by Ben Gamari
Browse files

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.
parent 8361b2c5
......@@ -151,7 +151,7 @@ else:
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 =
if v != '':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment