diff --git a/configure b/configure
index e6a6b4f7d56076ec1bed71ba443da33679cb8865..55c724297655bc633913a8f4ac75776c101ec6f0 100755
--- a/configure
+++ b/configure
@@ -7,6 +7,10 @@
 # Copyright (c) 2005-2006 Mans Rullgard
 #
 
+# Prevent locale nonsense from breaking basic text processing.
+LC_ALL=C
+export LC_ALL
+
 # make sure we are running under a compatible shell
 # try to make this part work with most shells