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: Mon, 08 Aug 2016 22:17:36 +0200 Message-ID: <87vazbm2vz.fsf@pobox.com> References: <20160304141334.GC7946@fysh.org> <878tw8nswc.fsf@pobox.com> <20160807230013.GE24721@fysh.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470687504 10412 195.159.176.226 (8 Aug 2016 20:18:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 20:18:24 +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 Mon Aug 08 22:18:20 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 1bWr07-0002aU-Dz for guile-bugs@m.gmane.org; Mon, 08 Aug 2016 22:18:19 +0200 Original-Received: from localhost ([::1]:59548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWr04-00044f-BL for guile-bugs@m.gmane.org; Mon, 08 Aug 2016 16:18:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWqzv-0003sf-3I for bug-guile@gnu.org; Mon, 08 Aug 2016 16:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWqzq-0003O0-R0 for bug-guile@gnu.org; Mon, 08 Aug 2016 16:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWqzq-0003Nw-Mf for bug-guile@gnu.org; Mon, 08 Aug 2016 16:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWqzq-0005O1-Ig for bug-guile@gnu.org; Mon, 08 Aug 2016 16:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 08 Aug 2016 20:18:02 +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.147068746920685 (code B ref 22905); Mon, 08 Aug 2016 20:18:02 +0000 Original-Received: (at 22905) by debbugs.gnu.org; 8 Aug 2016 20:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:60358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWqzc-0005NZ-PB for submit@debbugs.gnu.org; Mon, 08 Aug 2016 16:17:48 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:62816 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWqza-0005NR-TD for 22905@debbugs.gnu.org; Mon, 08 Aug 2016 16:17:47 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 61C112FC8C; Mon, 8 Aug 2016 16:17:45 -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=YQ4kNJXAaQIKsHL6BiFzqv0UDTk=; b=VvKCbR TejL9QQo5rYhwWFUctS6v0z3V1J7Ze4Igfwl4xhEOiMQOaD0bTC7wTwpkfUIFWRj tqhu+R1rL1gQyKNlw8tn1L5vykBhtObChehxkbH2ZqopFuMsdk3ZPMIGW/da0U2z XQGuXqoNzUXP5f/IIjTkbNk5Bx4sMYDCya5FU= 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=rBx0HRK5sj9tUrfCNkr7jOZDYiJMwBNW T/S2NnkG/aLL/mPrax9Jg2EnyaUATYX8UbY67rTuTq13DCXrt1nIQ7HCQw02EUuw DMNpNVEudzoz8zJXOP9cE0pTxtxBQ8SRAj7Wb0pXrqW2M6gBTXhdDabHkHCFRQlS 4tWJ6P+p52U= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 5B5AA2FC8A; Mon, 8 Aug 2016 16:17:45 -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-sasl1.pobox.com (Postfix) with ESMTPSA id 6A9892FC85; Mon, 8 Aug 2016 16:17:44 -0400 (EDT) In-Reply-To: <20160807230013.GE24721@fysh.org> (zefram@fysh.org's message of "Mon, 8 Aug 2016 00:00:13 +0100") X-Pobox-Relay-ID: 2AA394B2-5DA5-11E6-90D8-C1836462E9F6-02397024!pb-sasl1.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:8362 Archived-At: Hello, On Mon 08 Aug 2016 01:00, Zefram 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