From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zefram Newsgroups: gmane.lisp.guile.bugs Subject: bug#22905: GUILE_INSTALL_LOCALE produces unavoidable noise Date: Mon, 8 Aug 2016 00:00:13 +0100 Message-ID: <20160807230013.GE24721@fysh.org> References: <20160304141334.GC7946@fysh.org> <878tw8nswc.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1470610884 10639 195.159.176.226 (7 Aug 2016 23:01:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2016 23:01:24 +0000 (UTC) Cc: 22905@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Aug 08 01:01:21 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWX4F-0001Kv-4B for guile-bugs@m.gmane.org; Mon, 08 Aug 2016 01:01:15 +0200 Original-Received: from localhost ([::1]:54129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWX4B-0005EO-OI for guile-bugs@m.gmane.org; Sun, 07 Aug 2016 19:01:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWX46-0005E9-5c for bug-guile@gnu.org; Sun, 07 Aug 2016 19:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWX42-0005Xl-1T for bug-guile@gnu.org; Sun, 07 Aug 2016 19:01:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWX41-0005Xh-UJ for bug-guile@gnu.org; Sun, 07 Aug 2016 19:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWX41-0004P5-Nb for bug-guile@gnu.org; Sun, 07 Aug 2016 19:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zefram Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 07 Aug 2016 23:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22905 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 22905-submit@debbugs.gnu.org id=B22905.147061081916873 (code B ref 22905); Sun, 07 Aug 2016 23:01:01 +0000 Original-Received: (at 22905) by debbugs.gnu.org; 7 Aug 2016 23:00:19 +0000 Original-Received: from localhost ([127.0.0.1]:59329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWX3L-0004O5-83 for submit@debbugs.gnu.org; Sun, 07 Aug 2016 19:00:19 -0400 Original-Received: from river.fysh.org ([87.98.248.19]:40951 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWX3J-0004Nw-JF for 22905@debbugs.gnu.org; Sun, 07 Aug 2016 19:00:18 -0400 Original-Received: from zefram by river.fysh.org with local (Exim 4.84_2 #1 (Debian)) id 1bWX3F-0006s3-5f; Mon, 08 Aug 2016 00:00:13 +0100 Content-Disposition: inline In-Reply-To: <878tw8nswc.fsf@pobox.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8359 Archived-At: 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. >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. > Probably adding the suggestion to the warning is the right >thing; wdyt? No, that's not an improvement. Emitting a warning and then running the program anyway is fundamentally broken behaviour, and tweaking the content of the warning doesn't help. 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. -zefram