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#24186: setlocale can't be localised Date: Mon, 08 Aug 2016 22:33:14 +0200 Message-ID: <87invbm25x.fsf@pobox.com> References: <20160808163214.GF24721@fysh.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470688462 432 195.159.176.226 (8 Aug 2016 20:34:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 20:34:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: 24186@debbugs.gnu.org To: Zefram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Aug 08 22:34:18 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 1bWrFZ-0008Pr-2v for guile-bugs@m.gmane.org; Mon, 08 Aug 2016 22:34:17 +0200 Original-Received: from localhost ([::1]:59606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWrFV-0002QO-VM for guile-bugs@m.gmane.org; Mon, 08 Aug 2016 16:34:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWrFP-0002QE-1m for bug-guile@gnu.org; Mon, 08 Aug 2016 16:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWrFK-00076m-Rb for bug-guile@gnu.org; Mon, 08 Aug 2016 16:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWrFK-00076f-L8 for bug-guile@gnu.org; Mon, 08 Aug 2016 16:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWrFK-0005nA-D5 for bug-guile@gnu.org; Mon, 08 Aug 2016 16:34: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:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24186 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 24186-submit@debbugs.gnu.org id=B24186.147068840822209 (code B ref 24186); Mon, 08 Aug 2016 20:34:02 +0000 Original-Received: (at 24186) by debbugs.gnu.org; 8 Aug 2016 20:33:28 +0000 Original-Received: from localhost ([127.0.0.1]:60381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWrEm-0005m9-8p for submit@debbugs.gnu.org; Mon, 08 Aug 2016 16:33:28 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:61329 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWrEk-0005m1-Lb for 24186@debbugs.gnu.org; Mon, 08 Aug 2016 16:33:27 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 3D2222FD27; Mon, 8 Aug 2016 16:33:23 -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=9eKliXpqHtKIsPQ6MMUKDf2Pyok=; b=ybtdWH mddmDVGjXMDEoB0rM7s/mllnNnbRNxcGKXaPpR+D7WYrdJMhklUyLSEoAjEIg9Ey 80GZoMIkQ/vVcBoDFDIySy8ELsTgPThztjFhXyn7fQkO9NWNYtBJvE1ZlX+tL9hj Qzxsf62Ys3JumBeU3ySNtP42A0U55lVjPuPHA= 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=oP71EM9gdirbI+az46L0PE79G7kOTu9f WQCWkzo8Q3MZEKgzFeXCl//P9bz/6gEfku81HOK0knAuLXwb2H3J/tLCT6RW5pg2 t/9kt7mf03zer+lr5ok5HLLPF4Fv7yz+xhg6f+e2JGwxSDjdc1oY+/FdTbTFwZpk GIFITIePAr0= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 2C86A2FD26; Mon, 8 Aug 2016 16:33:23 -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 1CD992FD25; Mon, 8 Aug 2016 16:33:21 -0400 (EDT) In-Reply-To: <20160808163214.GF24721@fysh.org> (zefram@fysh.org's message of "Mon, 8 Aug 2016 17:32:14 +0100") X-Pobox-Relay-ID: 598E61EC-5DA7-11E6-82B3-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:8365 Archived-At: Greets :) Firstly, just to make sure that we are getting things right in 2.2 (and if not we need to know), would you mind testing with the latest 2.1.x release? Also, do you have a concrete program whose behavior you expect to be different? I appreciate the call-with-locale example but I'm not sure what is going wrong so having an example invocation would be useful. On Mon 08 Aug 2016 18:32, Zefram writes: > The setlocale *write* operation also affects port encoding (actually > the default port encoding fluid and the encoding of currently-selected > ports), and that seems to be an intentional change, but it also breaks > the above code. I believe that the intention (for better or for worse) is that calling `setlocale' with 2 arguments changes the "default port encoding". Like, the next port you open will have the encoding specified by the `setlocale', if you don't change it explicitly later. But I don't think it should change the encoding of already-open ports, should it? Andy