From: "Ludovic Courtès" <ludo@gnu.org>
To: Andy Wingo <wingo@igalia.com>
Cc: Guile Devel <guile-devel@gnu.org>
Subject: Re: Removing the locale warning?
Date: Mon, 16 Dec 2019 17:06:20 +0100 [thread overview]
Message-ID: <875zigfe6b.fsf@gnu.org> (raw)
In-Reply-To: <87pngoxsxf.fsf@igalia.com> (Andy Wingo's message of "Mon, 16 Dec 2019 15:10:20 +0100")
Hi,
Andy Wingo <wingo@igalia.com> skribis:
> On Sat 14 Dec 2019 16:44, Ludovic Courtès <ludo@gnu.org> writes:
>
>> What about getting rid of the locale warning?
>>
>> More generally, I'm in favor of reducing run-time warnings to a bare
>> minimum, because application users often don’t care about them (plus
>> they’re not i18n’d), and because application developers cannot silence
>> them or handle them in a way that is more suitable for the application.
>>
>> Thoughts?
>
> Funny, I find them really useful as they let me know when my environment
> isn't correctly configured, so I can then take action.
Oh, I see.
> How can we resolve these two use cases?
Not sure. Guix does an extra ‘setlocale’ call and prints a
user-friendly and Guix-specific message when the locale is unavailable:
https://git.savannah.gnu.org/cgit/guix.git/tree/guix/ui.scm#n457
As an application developer, I feel that it’s the application’s job to
pay attention to that (when it matters) and it bothers me that libguile
prints its own warning (not i18n’d, not controllable, etc.), just like
it would bother me if libc were emitting such a warning.
Perhaps the REPL and the ‘guild’ script could emit such a warning, while
libguile itself would remain silent?
(I know that Perl and Bash emit a warning when ‘setlocale’ fails, while
Python doesn’t. As for applications, I’ve seen all sorts of behaviors
ranging from silently ignoring the issue (Coreutils, sed, grep, Git,
etc.) to showing a popup window (Gramps) to emitting a warning (most
GTK+ programs).)
Thoughts?
Ludo’.
prev parent reply other threads:[~2019-12-16 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-14 15:44 Removing the locale warning? Ludovic Courtès
2019-12-15 0:22 ` Brett Gilio
2019-12-16 14:10 ` Andy Wingo
2019-12-16 16:06 ` Ludovic Courtès [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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zigfe6b.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@gnu.org \
--cc=wingo@igalia.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).