Received: from eggs.gnu.org ([208.118.235.92]:53990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBsqd-0005KY-Iq for qemu-devel@nongnu.org; Sun, 25 Mar 2012 15:11:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBsqb-00031s-Jw for qemu-devel@nongnu.org; Sun, 25 Mar 2012 15:11:27 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:42815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBsqb-00031o-DU for qemu-devel@nongnu.org; Sun, 25 Mar 2012 15:11:25 -0400 From: Stefan Weil Date: Sun, 25 Mar 2012 21:11:10 +0200 Message-Id: <1332702671-32076-2-git-send-email-sw@weilnetz.de> In-Reply-To: <1332702671-32076-1-git-send-email-sw@weilnetz.de> References: <1332702671-32076-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH v2 1/2] Makefile: Set default locale C List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Emre Ersin , Stefan Weil Some locale settings let make fail or create wrong results, so set always the C locale. * Conversion from lower to upper case with tr does not convert lower case 'i' to 'I' with locale tr_TR.UTF-8. This results in wrong entries in config-host.h like these ones: #define CONFIG_QEMU_PREFiX "/usr/local" #define CONFIG_QEMU_BiNDiR "/usr/local/bin" This problem was reported by Emre Ersin. * The html files created from texi input contain non english titles like "Anhang" with locale de_DE.UTF-8. The locale variables are not explicitly exported here to avoid possible problems with the 'export' keyword. Either they are already environment variables when make is called - then the new values are passed to child processes, or there are no such environment variables - then the default value C is used. v2: Enhanced commit message. Signed-off-by: Stefan Weil --- Makefile | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 8d6b558..3f899e2 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,11 @@ $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw) LIBS+=-lz $(LIBS_TOOLS) +# Set default locale for commands like tr and others. +LANG=C +LC_ALL=C +LC_CTYPE=C + HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF) ifdef BUILD_DOCS -- 1.7.9