Skip to content
Snippets Groups Projects
Commit abd5db60 authored by Gabor Greif's avatar Gabor Greif :speech_balloon: 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
No related branches found
No related tags found
No related merge requests found
......@@ -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 != '':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment