egl: use the LC_ALL hammer instead of LANG
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 1 Nov 2018 16:40:28 +0000 (16:40 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 1 Nov 2018 17:25:08 +0000 (17:25 +0000)
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: b42dc50a5f1b22103b26 "egl: fix entrypoint sorting test"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/egl/egl-entrypoint-check

index bb7d6a777a71be5842fcb554a31698a98c98df5c..d6a42722a44c7ed4a5cd61eaee15b365fceaf8d4 100755 (executable)
@@ -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"