From: Stefan Weil <sw@weilnetz.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Emre Ersin" <emre.ersin@gmail.com>,
"Andreas Färber" <afaerber@suse.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Patch 0/2] Fix QEMU configure / make with Turkish (and maybe other) locale
Date: Sun, 25 Mar 2012 22:16:30 +0200 [thread overview]
Message-ID: <4F6F7D1E.1080508@weilnetz.de> (raw)
In-Reply-To: <CAFEAcA-Cnn0NFtD-O3hmcTRE6m3vcCQPL=O907-3jCSO6oW1hA@mail.gmail.com>
Am 25.03.2012 21:52, schrieb Peter Maydell:
> On 25 March 2012 20:27, Andreas Färber <afaerber@suse.de> wrote:
>> Am 25.03.2012 21:11, schrieb Stefan Weil:
>>> These two patches override the user specific locale settings which
>>> can break QEMU builds. They set the default locale C for configure
>>> and make:
>>>
>>> [PATCH v2 1/2] Makefile: Set default locale C
>>> [PATCH 2/2] configure: Set default locale C (fix build for Turkish
>>>
>>> A side effect is that all messages which are produced during configure
>>> and make also use the default locale, so for example compiler messages
>>> are no longer localized.
>>
>> Reading the patches I thought of that issue, too, and don't think a
>> sledge hammer is the best solution here. The issue reported was tr (a
>> user-invisible invokation) misbehaving so why not fix just that? That
>> way user-directed output would still be in the language of the user's
>> choice.
>
> Well, configure should just set the locale to C, I think. This is how
> autoconf-generated configure scripts behave, for example. The rationale
> here is that configure shouldn't be outputting anything except (a) output
> to log files etc and (b) messages we control [and which we don't localise
> anyway!]. So we should favour not making it easy to accidentally
> introduce obscure bugs in some locales.
I fully agree.
>
> For make itself the argument is less clear-cut because as you say
> compiler messages go to the user.
>
> -- PMM
For make, it is still possible to set LANGUAGE.
I don't know whether it works with gcc (none of my native and
cross gcc installations has localized messages installed),
but I tested setting LANGUAGE with 'ls --help' where it works.
And compiler messages go first to the user, but sometimes also
to other developers (bug reports!), so even there are good
arguments for the C locale.
Regards,
Stefan W.
prev parent reply other threads:[~2012-03-25 20:16 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 ` [Qemu-devel] [PATCH 2/2] configure: Set default locale C (fix build for Turkish locale) Stefan Weil
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 [this message]
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=4F6F7D1E.1080508@weilnetz.de \
--to=sw@weilnetz.de \
--cc=afaerber@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.