egl: use the LC_ALL hammer instead of LANG

Some environment (like Travis apparently) set LC_* vars, messing up the
sort ordering, so let's use envvar with the highest priority to make
sure this is actually sorted in ASCII order.

Suggested-by: Michel Dänzer <michel@daenzer.net>
Fixes: b42dc50a5f "egl: fix entrypoint sorting test"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Eric Engestrom
2018-11-01 16:40:28 +00:00
parent b42dc50a5f
commit 4da169d368
+1 -1
View File
@@ -7,5 +7,5 @@ then
fi
entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
sorted=$(LANG=C sort <<< "$entrypoints")
sorted=$(LC_ALL=C sort <<< "$entrypoints")
test "$entrypoints" = "$sorted"