public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kevin F. Quinn" <kevquinn@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev]  et_EE locale and language of error messages
Date: Wed, 24 May 2006 12:36:17 +0200	[thread overview]
Message-ID: <20060524123617.0f390a5a@c1358217.kevquinn.com> (raw)
In-Reply-To: <e4k3lu$6ar$1@sea.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2651 bytes --]

On Fri, 19 May 2006 11:38:06 +0200
Stefan Schweizer <genstef@gentoo.org> wrote:

> Hi,
> 
> there are at least two problems with how portage currently handles
> locales:
> 
> - Firstly some packages fail to build with obscure LC_* settings

Anything that expects ordering etc from a particular locale, but does
not set the locale, is broken.  It's nothing to do with obscure; I've
seen bugs occur due to people setting their default locale to
en_US.UTF-8 which can hardly be called obscure.  Also calling the
Estonian locale "obscure" is just rude.

> The continuous stream of et_EE bugs is annoying:
> http://tinyurl.com/jsqzb

These should be fixed by setting the correct locale prior to the
commands that are sensitive to it.  Such fixes should be sent or
negotiated with upstream.

> - and secondly I get my gcc output in german when I have a german
> locale set. This makes it really hard to report bugs or the
> bugreports are useless for most developers that do not understand the
> language.

My preferred  approach here, is that if the people working the bug don't
understand the report (including wranglers of course) simply resolve it
"NEEDINFO" requesting the user translate the error messages if
they can, or perhaps do 'export LC_ALL=C' before emerge and
repost the results.  Note that setting the locale to C may actually
cause a change in behaviour, perhaps even preventing the bug from
occurring if the bug is locale-specific, so obtaining a translation is
better.

> Those problems cannot be easily workarounded since portage does not
> use LC_ALL and LANG settings from /etc/make.conf
>
> I propose to have the portage build environment set the language to
> English or LC_ALL=C by default. That would significantly reduce the
> bugs with unreadable error messages+ solve all the et_EE bugs at once.

The 'et_EE' bugs would not be solved, they would be hidden.  It's much
better to inform upstream that they've assumed the C locale; those I've
interacted with on this issue so far have been happy to be informed and
have set the locale where they need to.

> One problem could be that packages depend on LC_* to install the
> correct language. But that is a real bug then in my opinion, because
> ebuilds should only honour LINGUAS and not LC_* during build time.
> Those bugs should be detected and fixed.

I disagree.  LINGUAS is a Gentoo-specific thing, so is only relevant to
ebuilds.  If a package uses LC_* to determine the user's locale
preferences, I see no problem with that.

> What do you think? LC_ALL=C in portage or not?

I vote not.

-- 
Kevin F. Quinn

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

  parent reply	other threads:[~2006-05-24 10:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19  9:38 [gentoo-dev] et_EE locale and language of error messages Stefan Schweizer
2006-05-19 10:22 ` Marc Hildebrand
2006-05-19 13:13   ` [gentoo-dev] " Stefan Schweizer
2006-05-19 13:30     ` Harald van Dijk
2006-05-19 16:01     ` Duncan
2006-05-19 17:14     ` Marius Mauch
2006-05-19 17:27       ` [gentoo-dev] " Stefan Schweizer
2006-05-19 18:10         ` Marius Mauch
2006-05-19 17:45       ` [gentoo-dev] " Zac Medico
2006-05-22 16:57   ` Wiktor Wandachowicz
2006-05-19 12:49 ` [gentoo-dev] " Harald van Dijk
2006-05-19 13:02   ` Jakub Moc
2006-05-19 13:09   ` Patrick McLean
2006-05-19 13:24     ` Harald van Dijk
2006-05-19 13:55       ` Carsten Lohrke
2006-05-19 13:44   ` Daniel Drake
2006-05-19 13:40     ` Harald van Dijk
2006-05-19 15:44   ` [gentoo-dev] " Stefan Schweizer
2006-05-19 16:05     ` Harald van Dijk
2006-05-24  0:59 ` [gentoo-dev] " Mike Frysinger
2006-05-24 10:36 ` Kevin F. Quinn [this message]
2006-05-24 11:17   ` Harald van Dijk
2006-05-24 12:58     ` Kevin F. Quinn
2006-05-24 11:42   ` Jakub Moc
2006-05-24 13:12     ` Kevin F. Quinn
2006-05-25 21:09     ` Mike Frysinger
2006-05-26  7:37     ` Mike Frysinger

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=20060524123617.0f390a5a@c1358217.kevquinn.com \
    --to=kevquinn@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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