From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#22905: GUILE_INSTALL_LOCALE produces unavoidable noise Date: Sun, 07 Aug 2016 23:58:11 +0200 Message-ID: <878tw8nswc.fsf@pobox.com> References: <20160304141334.GC7946@fysh.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470607171 28394 195.159.176.226 (7 Aug 2016 21:59:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2016 21:59:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: 22905@debbugs.gnu.org To: Zefram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Aug 07 23:59:28 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 1bWW6F-0004uh-VB for guile-bugs@m.gmane.org; Sun, 07 Aug 2016 23:59:16 +0200 Original-Received: from localhost ([::1]:53988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWW6C-0006Tz-R5 for guile-bugs@m.gmane.org; Sun, 07 Aug 2016 17:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWW66-0006Tt-Mn for bug-guile@gnu.org; Sun, 07 Aug 2016 17:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWW62-0006KO-L5 for bug-guile@gnu.org; Sun, 07 Aug 2016 17:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWW62-0006Js-4m for bug-guile@gnu.org; Sun, 07 Aug 2016 17:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWW61-0002xc-VO for bug-guile@gnu.org; Sun, 07 Aug 2016 17:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 07 Aug 2016 21:59: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.147060710311327 (code B ref 22905); Sun, 07 Aug 2016 21:59:01 +0000 Original-Received: (at 22905) by debbugs.gnu.org; 7 Aug 2016 21:58:23 +0000 Original-Received: from localhost ([127.0.0.1]:59299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWW5P-0002wd-Ay for submit@debbugs.gnu.org; Sun, 07 Aug 2016 17:58:23 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:55371 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWW5N-0002wV-By for 22905@debbugs.gnu.org; Sun, 07 Aug 2016 17:58:21 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 9522430B61; Sun, 7 Aug 2016 17:58:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=2ZTjqENFSqJDdFMkBO3Pn3Su7z4=; b=RnNaVb oQSBYajXhIMVLzQokF6X1rWZNe8J+2pQecPuj3s7vsJtB5vdldL8PE1Fn2GCpUiZ HIwd1SOFyb/6fvgjrzUALKDVvOJlF8ghFOaXwU/Raq9Lr+Y6NKAhhCNTsOgN5PD3 T+3QX9B0QhdtV1k6kR5VCiAlGr0ThEIYSNqMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=nw9GkwV/UfPJJzpsxxpVpuP0O3ZPf9je 2owHpvtuqTW3HKBiYI0JqupbXtlqfgsXrIrBelUXOqgCuOvpOsvVALGr8og82/Hf VshGWUDr1tZr+CGrQytPbHNkZxjL0xNBjN3wIqA/Wkz/H2ESJKEjKTAXNlo/cEj8 EsFSAUD3DT4= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 8DB6A30B60; Sun, 7 Aug 2016 17:58:19 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id A8E1930B5F; Sun, 7 Aug 2016 17:58:18 -0400 (EDT) In-Reply-To: <20160304141334.GC7946@fysh.org> (zefram@fysh.org's message of "Fri, 4 Mar 2016 14:13:34 +0000") X-Pobox-Relay-ID: 0CE4F3D2-5CEA-11E6-96D8-28A6F1301B6D-02397024!pb-sasl2.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:8355 Archived-At: On Fri 04 Mar 2016 15:13, Zefram writes: > GUILE_INSTALL_LOCALE=1 breaks some of the robustness of non-locale-using > programs, marring their stderr output if the environment's locale settings > are faulty. I believe this is consistent with other programs which call setlocale, notably Perl and Bash. I think the right way to avoid the output is to avoid the call to setlocale, and Guile offers the GUILE_INSTALL_LOCALE=0 knob to do this. > However, if it is deemed to be essential that Guile attempt the implicit > setlocale and gripe about its failure, then the message should not > precede or otherwise mix with the actual program run. The message should > be emitted *instead of* running the program, declaring the absolute > incompatibility of the Guile framework with this environmental condition. Your suggestion is not what Perl or Bash does, FWIW. But it is possible -- we could emit an error and require the user to run with GUILE_INSTALL_LOCALE=0. Or we could add that suggestion to the warning. Probably adding the suggestion to the warning is the right thing; wdyt? Try "LC_ALL=fasdada perl" for an example. Andy