From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: Running script from directory with UTF-8 characters Date: Tue, 22 Dec 2015 00:34:47 +0000 Message-ID: <20151222003447.198ea945@bother.homenet> References: <87twnbfkzb.fsf@elektro.pacujo.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1450744760 13647 80.91.229.3 (22 Dec 2015 00:39:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2015 00:39:20 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Dec 22 01:39:10 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBAyr-0004Tx-4n for guile-user@m.gmane.org; Tue, 22 Dec 2015 01:39:09 +0100 Original-Received: from localhost ([::1]:48036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBAyq-0005Tg-Gm for guile-user@m.gmane.org; Mon, 21 Dec 2015 19:39:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBAum-0007VY-U3 for guile-user@gnu.org; Mon, 21 Dec 2015 19:34:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBAuj-0002YS-N5 for guile-user@gnu.org; Mon, 21 Dec 2015 19:34:56 -0500 Original-Received: from smtpout4.wanadoo.co.uk ([80.12.242.68]:56885 helo=smtpout.wanadoo.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBAuj-0002YE-G1 for guile-user@gnu.org; Mon, 21 Dec 2015 19:34:53 -0500 Original-Received: from bother.homenet ([95.146.110.69]) by mwinf5d46 with ME id wQao1r0071VswCF03Qao4v; Tue, 22 Dec 2015 01:34:50 +0100 X-ME-Helo: bother.homenet X-ME-Date: Tue, 22 Dec 2015 01:34:50 +0100 X-ME-IP: 95.146.110.69 Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with ESMTP id 11CF812124F for ; Tue, 22 Dec 2015 00:34:48 +0000 (GMT) In-Reply-To: <87twnbfkzb.fsf@elektro.pacujo.net> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.29; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.68 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12260 Archived-At: On Tue, 22 Dec 2015 01:19:36 +0200 Marko Rauhamaa wrote: > Vicente Vera : > > > Hello. I'm sorry if this is the wrong list (I'm not sure if its a > > bug). > > Must be a bug. > > > I wrote a small test script: > > The error is reproduced with an empty scm file: > > touch test.scm > guile test.scm > [...] > ERROR: In procedure open-file: No such file or directory: [...] I think the problem is that calling the native 'primitive-load' procedure on a filename with UTF-8 encoding with a character outside the ASCII range (when the locale encoding is also UTF-8) fails to work unless you call '(set-locale LC_ALL "")' in the program first. Of course you can't do that when passing guile a filename as a program argument. It does seem like a weakness, even if not a bug. Chris