From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vicente Vera Newsgroups: gmane.lisp.guile.user Subject: Running script from directory with UTF-8 characters Date: Mon, 21 Dec 2015 18:09:52 -0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1450734181 4549 80.91.229.3 (21 Dec 2015 21:43:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2015 21:43:01 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 21 22:43:00 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 1aB8EO-0005G2-5m for guile-user@m.gmane.org; Mon, 21 Dec 2015 22:43:00 +0100 Original-Received: from localhost ([::1]:47457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB8EN-0006ED-HV for guile-user@m.gmane.org; Mon, 21 Dec 2015 16:42:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB7iL-00050N-SC for guile-user@gnu.org; Mon, 21 Dec 2015 16:09:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB7iL-0007qy-0n for guile-user@gnu.org; Mon, 21 Dec 2015 16:09:53 -0500 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:32784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB7iK-0007qu-SG for guile-user@gnu.org; Mon, 21 Dec 2015 16:09:52 -0500 Original-Received: by mail-ob0-x232.google.com with SMTP id bx1so14174167obb.0 for ; Mon, 21 Dec 2015 13:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=89ro4aGoJcJH4q82zqWTvztC35UN9ZhWvHDKbAZwHiQ=; b=XF+WZqNaVymHt5I9gpgv9uq1aqVljFOG7gSdDt1aaWfxZyIQJVmjZEDnVtA5AWTv7+ A5wsVnANdxEd23OMdzSyM02sNkUuVnojQcsl3LHSQB6ZpPr6BzG81RHcilX3ARPO5vDd D+wwJR2yJiHB+GtjqGUU3YgFqTlj93BxvbiEqjmMEsGy3DRzIkODTOhw4fexLT2MRnHu A7EGKuLhSoX8bcIlLy/jrcH5L6gYdAAs1vS63uqTuXLVdQC/c8Hf/6/jaF8K08sEyAoM Vq7ZFydEoQKnF5+VOPkuoEr+YlX5ZrpK/QAMDAclMnVYX+7NWnHToGxtcGp1z932z/Go 2/CQ== X-Received: by 10.60.16.198 with SMTP id i6mr9121800oed.19.1450732192260; Mon, 21 Dec 2015 13:09:52 -0800 (PST) Original-Received: by 10.76.171.72 with HTTP; Mon, 21 Dec 2015 13:09:52 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::232 X-Mailman-Approved-At: Mon, 21 Dec 2015 16:42:32 -0500 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:12258 Archived-At: Hello. I'm sorry if this is the wrong list (I'm not sure if its a bug). I wrote a small test script: #!/usr/bin/guile -s !# ;; coding: utf-8 (display "hey") (newline) This happens when I try to run it from a directory with UTF-8 characters: $ cd ~/c=C3=B3digo/ $ ./test.scm ;;; Stat of /home/me/c??digo/./test.scm failed: ;;; ERROR: In procedure stat: No such file or directory: "/home/me/c??digo/./test.scm" Backtrace: In ice-9/boot-9.scm: 157: 8 [catch #t # ...] In unknown file: ?: 7 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 6 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 5 [eval # #] In ice-9/boot-9.scm: 2401: 4 [save-module-excursion #] 4052: 3 [#] 1724: 2 [%start-stack load-stack ...] 1729: 1 [#] In unknown file: ?: 0 [primitive-load "/home/me/c??digo/./test.scm"] ERROR: In procedure primitive-load: ERROR: In procedure open-file: No such file or directory: "/home/me/c??digo/./test.scm" If I remove the UTF-8 character the script works just fine (mv -T ~/c=C3=B3digo ~/codigo). My locale is en_US.UTF-8 & Guile version: $ guile -v guile (GNU Guile) 2.0.11 Packaged by Debian (2.0.11-deb+1-9) ... What it's happening and how can I solve this? Thank you!