[Mesa-dev] [PATCH 3/5] mesa: update mangle script to force locale

Ilia Mirkin imirkin at alum.mit.edu
Mon Aug 11 12:07:07 PDT 2014


The sorting is different with LC_ALL=C. To avoid different people's
locale settings from fighting, force it to the one that was used to
generate the current file.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

Not sure if there's a better way of doing it... perhaps forcing to C and just
regenerating with that may be better? Not sure.

 include/GL/gl_mangle.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/GL/gl_mangle.h b/include/GL/gl_mangle.h
index e04cf66..dcc6e76 100644
--- a/include/GL/gl_mangle.h
+++ b/include/GL/gl_mangle.h
@@ -6,7 +6,7 @@
 	awk 	'!done; /^\/\*REGENERATE_TO_END/ {done=1}' $0
 	echo ""
 #define GL_MANGLE_C4 get aliases
-	grep '^GLAPI' $files | sed -e 's/.*ENTRY gl\([^( ]*\).*$/#define gl\1		MANGLE(\1)/' | sort | uniq
+	LC_ALL=en_US.utf8 grep '^GLAPI' $files | sed -e 's/.*ENTRY gl\([^( ]*\).*$/#define gl\1		MANGLE(\1)/' | sort | uniq
 	echo ""
 	echo "#endif /* GL_MANGLE_H */"
 	exit
-- 
1.8.5.5



More information about the mesa-dev mailing list