From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Startup locale and environ_locale_charset Date: Sat, 27 Apr 2019 22:22:12 -0700 Message-ID: <20190428052212.GA11084@spikycactus.attlocal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1944"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Apr 28 07:34:02 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKcRt-0000OY-To for guile-devel@m.gmane.org; Sun, 28 Apr 2019 07:34:02 +0200 Original-Received: from localhost ([127.0.0.1]:40068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKcRs-00066s-MG for guile-devel@m.gmane.org; Sun, 28 Apr 2019 01:34:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKcRl-00063m-20 for guile-devel@gnu.org; Sun, 28 Apr 2019 01:33:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKcGh-0002vQ-Hn for guile-devel@gnu.org; Sun, 28 Apr 2019 01:22:28 -0400 Original-Received: from sonic313-15.consmr.mail.bf2.yahoo.com ([74.6.133.125]:37927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKcGh-0002uH-Bi for guile-devel@gnu.org; Sun, 28 Apr 2019 01:22:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1556428945; bh=r6T3GHtr1BwBuaQb3Pmir5WYEc9Xqz1VFq0kjRwTmIg=; h=Date:From:To:Subject:From:Subject; b=b8mNn+QucGuqykwm0rSL+aMfNg1JtpC+NRjcQXYY0BBxAtPz7aK4MkijWNwXXMmgTRg35rOppZ+eHVG+dwUOPxAEGvj1MXiT6U1Mh3aFNfvltuWi6z9MCO1eWCVKB/3cuzUiqtYO9p53lX2Bu0JG4u3NWQo2TQbIW3NioPReJzUwp3DL9pwQWfZOVhHtkVVpI1nvAS3Gxq2qvz4LndH3j6Ort2s0s86tA+ZndV9fGaYBaDXBU970mk3zrxKXBL3yrQfG4Z6pMImnhf3VTwJuD6goeNfbtj5KnD4GceWKBRUGYSAYvkdWzGDHu6iJZOcdyko63ky8BdjtvqwFalRw9w== X-YMail-OSG: JNnd60sVM1lj41s623i0EPaqh_KkIIM0gFrOgdGOnYYjDEc.mEWtiM79aqVztYC ZHzhqu958.adCOlSn6uzrkBUI5Kfyr5pJcsY1Mns8O49tOfG3nfgCYtfdOyaWFdU0O53JbQJKmsw m.1pLvzYTW8ern04dC.W4WmAsNgkgEOkZL8FrG6Kjsp4FrD9wJk4oVKJFZ89.OKVY2E3fLl.3rJt dy0Yj04sb02ngyLNI0k4GBjuH_DY_si4s.K0pe15lZ4ypyeY50rW9mxV2tV_VczktekogC0uEvGD G1iOpFqn5El44SuOphpfeSHugUm1Zjwf2sa16CjILdhl9_MtVEJJ2XNMcdDgQQbjYs1WVKEXaELD WueO7TezWAOTpfjkRfxVqAGJgs2TR9n0_QpLz_OVYtapx4LLPQ2wJd0Jy9Ntsdcbb8bA_RHrftOB WPC1HvFbmd1_qcSkyqMdbmZ5DtJbptSAVM8VrkdSSGn9AVnLV3oT7n.2ENZZbWoqPDJVgU57XbfF LL9xhXDHGTKBbsclsWheHFTacPBZnjA_GCuoMSc4eHyMwifgtSsiOoD8t5KqcrO50af6Gmg31zB1 LZPcFdyUcobA2biSQM8814y7pzDNQzKwykPhJdvVgrYHP9IXDqkvEnk76rUlkH6OpPsxgY61wxqi 4OGh_GK0IH2y4CtY66ZDb7OC7Zxsgxt2V96M7_g6h_.T4mqs301bPsW492qG4Nts3ZD3rObPzMG2 jqXMcGn3U21Y6DDuGGRoQTxHrzeQqZiQLQBNnY2Jw816KXcdpvhV.tGOM1PS9hsaxLmMb5RX.QtR .iyF._ZXMxyBaPFDHnQkxdYf1ObByV1prtPyhZqKf8 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Sun, 28 Apr 2019 05:22:25 +0000 Original-Received: from 75-54-112-187.lightspeed.irvnca.sbcglobal.net (EHLO spikycactus.attlocal.net) ([75.54.112.187]) by smtp419.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1ab2e1ae082a2ba38c3bdd794c338c23 for ; Sun, 28 Apr 2019 05:22:20 +0000 (UTC) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 74.6.133.125 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19896 Archived-At: Starting in the 2.2.x series, the Guile executable calls setlocale(LC_ALL,"") on startup except when the GUILE_INSTALL_LOCALE environment variable is set to '0'. This leads to a call to scm_shell that converts command line arguments to Guile strings using the current locale. But in doing so, it calls a function environ_locale_charset() that presumes that setlocale hasn't been called. This appears to be obsolete, and probably be replaced with just a call to gnulib's locale_charset(). It is a bit of an issue because it would prevent a possible future update to gnulib, which no longer provides the get_charset_aliases() procedure on which environ_locale_charset() has depended. If there is no objection, I'd like to remove environ_locale_charset(). But doing this would theoretically lead to a user-visible change. If there were a user that had set the GUILE_INSTALL_LOCALE environment variable to zero, intentionally bringing up Guile in the "C" locale, but, still relied on Guile parsing non-ASCII command line arguments in the environment's LANG-specified locale, it might lead to a different behavior. I'm fairly certain that this corner case would never occur in real life. A search-engine search on GUILE_INSTALL_LOCALE reveals no cases of anyone having set it to zero. What do you think? -Mike Gran