qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Emre Ersin <emre.ersin@gmail.com>, Stefan Weil <sw@weilnetz.de>
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	[thread overview]
Message-ID: <1332702671-32076-3-git-send-email-sw@weilnetz.de> (raw)
In-Reply-To: <1332702671-32076-1-git-send-email-sw@weilnetz.de>

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 <sw@weilnetz.de>
---
 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

  parent reply	other threads:[~2012-03-25 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 19:11 [Qemu-devel] [Patch 0/2] Fix QEMU configure / make with Turkish (and maybe other) locale Stefan Weil
2012-03-25 19:11 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Set default locale C Stefan Weil
2012-03-25 19:11 ` Stefan Weil [this message]
2012-03-25 19:27 ` [Qemu-devel] [Patch 0/2] Fix QEMU configure / make with Turkish (and maybe other) locale Andreas Färber
2012-03-25 19:48   ` Stefan Weil
2012-03-26 19:25     ` Eric Blake
2012-03-25 19:52   ` Peter Maydell
2012-03-25 20:16     ` Stefan Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1332702671-32076-3-git-send-email-sw@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=emre.ersin@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).