From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.bugs Subject: Re: UTF-8 regression in guile 1.9.5 Date: Mon, 11 Jan 2010 14:38:05 +0100 Message-ID: <87ocl0bw3m.fsf@gnu.org> References: <3ae3aa420912061043y12a33f27ia3d2c298812ee358@mail.gmail.com> <437145.81403.qm@web37905.mail.mud.yahoo.com> <3ae3aa420912061133r3d2fb5b4w2b3ea31f3d05e701@mail.gmail.com> <600066.28581.qm@web37908.mail.mud.yahoo.com> <3ae3aa420912061243nfb7f54cv1fd14950849b67fe@mail.gmail.com> <188729.99650.qm@web37904.mail.mud.yahoo.com> <67395.2223.qm@web37901.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1263217327 28903 80.91.229.12 (11 Jan 2010 13:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2010 13:42:07 +0000 (UTC) Cc: bug-guile@gnu.org To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 11 14:42:00 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUKWt-000861-3E for guile-devel@m.gmane.org; Mon, 11 Jan 2010 14:41:59 +0100 Original-Received: from localhost ([127.0.0.1]:43629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUKWt-0005VI-IU for guile-devel@m.gmane.org; Mon, 11 Jan 2010 08:41:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUKVB-0004j6-0l for guile-devel@gnu.org; Mon, 11 Jan 2010 08:40:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUKV6-0004hP-Mv for guile-devel@gnu.org; Mon, 11 Jan 2010 08:40:12 -0500 Original-Received: from [199.232.76.173] (port=53492 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUKV6-0004hC-8E for guile-devel@gnu.org; Mon, 11 Jan 2010 08:40:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:47406) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUKV5-0008Ou-Lm for guile-devel@gnu.org; Mon, 11 Jan 2010 08:40:08 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NUKV2-0007JF-EQ for guile-devel@gnu.org; Mon, 11 Jan 2010 14:40:04 +0100 Original-Received: from laptop-147-210-128-170.labri.fr ([147.210.128.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2010 14:40:04 +0100 Original-Received: from ludo by laptop-147-210-128-170.labri.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2010 14:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.lisp.guile.devel Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: laptop-147-210-128-170.labri.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?iso-8859-1?Q?Niv=F4se?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5FmaZekvmcMTJ1dwzKjx5rw8qP8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9855 gmane.lisp.guile.bugs:4442 Archived-At: Hi, Mike Gran writes: > But as far as the greater question of the side effects of setting locale > early on startup... The parsing of any source code files after locale > is set will be done in that context. I don't think it would do anything > unexpected. The reader and the port routines tend to do their own parsing, > and don't tend to rely on libc locale-specific routines. Even so, it > would take some auditing to prove that there would be no effect. Source files should have the right ‘coding:’ meta anyway. I just changed the compiler to install the current user locale [0], as that’s typically what a standalone program does. It makes it necessary for source files to have the right ‘coding:’ since otherwise they could get read with the current user’s locale encoding, which could be anything [1]. [0] http://git.savannah.gnu.org/cgit/guile.git/commit/?id=e6251e7bd98fbc64e9dbf489c8afaf426af46919 [1] http://git.savannah.gnu.org/cgit/guile.git/commit/?id=bce5cb56413da437c29628c529cec47649d12eb9 > If you were to set the locale in Guile, [...] I currently think we shouldn’t do it since (1) Guile can be embedded and it’s the application’s responsibility to set the locale, and (2) it would be a departure from previous versions of Guile and from POSIX behavior. Thanks, Ludo’.