unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Zefram <zefram@fysh.org>
Cc: 22905@debbugs.gnu.org
Subject: bug#22905: GUILE_INSTALL_LOCALE produces unavoidable noise
Date: Mon, 08 Aug 2016 22:17:36 +0200	[thread overview]
Message-ID: <87vazbm2vz.fsf@pobox.com> (raw)
In-Reply-To: <20160807230013.GE24721@fysh.org> (zefram@fysh.org's message of "Mon, 8 Aug 2016 00:00:13 +0100")

Hello,

On Mon 08 Aug 2016 01:00, Zefram <zefram@fysh.org> writes:

> Andy Wingo wrote:
>>I believe this is consistent with other programs which call setlocale,
>>notably Perl and Bash.
>
> It is consistent with them, but the fact that others get it wrong isn't
> an excuse.

I would like to let you know that I am working on this in my free time
and in that context I don't respond well to blame, "excuses", and so on.
If you would like for me to work on your bugs then I would appreciate it
if you would keep things constructive.  Thanks :)

>>avoid the call to setlocale, and Guile offers the GUILE_INSTALL_LOCALE=0
>>knob to do this.
>
> That knob is not available to the program.  If you provide a knob that
> the program can control, independent of the environment, with backward
> compatibility to Guile 1.8, then we can consider the setlocale call
> avoidable.

Serious question tho: what sort of back-compatibility can there be with
a Guile that only supports latin-1 strings?  What property is it that
you are going for here?

> Emitting a warning and then running the program anyway is
> fundamentally broken behaviour

My guess is that many people want exactly this behavior.  Only a guess
of course.

What about GUILE_INSTALL_LOCALE=require or something like that?  Does
that suit your needs?  If not, then:

> Some way for the program to detect that you've screwed up its output,
> so that it can decide to abort rather than continue with faulty output,
> would be another middle way.

How would this work?

Regards,

Andy





  reply	other threads:[~2016-08-08 20:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-04 14:13 bug#22905: GUILE_INSTALL_LOCALE produces unavoidable noise Zefram
2016-08-07 21:58 ` Andy Wingo
2016-08-07 23:00   ` Zefram
2016-08-08 20:17     ` Andy Wingo [this message]
2016-08-08 21:02       ` Zefram
2016-08-09 17:39         ` Andy Wingo
2016-08-09 19:26           ` Zefram

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=87vazbm2vz.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=22905@debbugs.gnu.org \
    --cc=zefram@fysh.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 read-only IMAP folder(s) and NNTP newsgroup(s).