qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] configure: Set default locale C (fix build for


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 2/2] configure: Set default locale C (fix build for Turkish locale)
Date: Sun, 25 Mar 2012 21:11:11 +0200

Some locales don't work with QEMU's configure because they
don't convert lower case to upper case as expected.

With the Turkish locale tr_TR.UTF-8 for example the command 'tr'
does not convert lower case 'i' which results in wrong definitions
in some target specific config-target.mak files:

TARGET_CRiS=y
TARGET_i386=y
TARGET_MiCROBLAZE=y
TARGET_MiPS64=y
TARGET_MiPS=y
TARGET_UNiCORE32=y

Setting the default locale C in configure avoids this problem.

Signed-off-by: Stefan Weil <address@hidden>
---
 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 14ef738..2eab795 100755
--- a/configure
+++ b/configure
@@ -2,6 +2,11 @@
 #
 # qemu configure script (c) 2003 Fabrice Bellard
 #
+# Set locale to C (needed for tr).
+export LANG=C
+export LC_ALL=C
+export LC_CTYPE=C
+
 # set temporary file name
 if test ! -z "$TMPDIR" ; then
     TMPDIR1="${TMPDIR}"
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]