unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Vicente Vera <vicentemvp@gmail.com>
To: 22229@debbugs.gnu.org
Subject: bug#22229: Error when running script from directory with non-ASCII characters
Date: Wed, 23 Dec 2015 22:46:21 -0300	[thread overview]
Message-ID: <CAMfbzvDb+wRPVc5FWnstfUe_GFumHYXYO9KF--G=9SytREd8=g@mail.gmail.com> (raw)

Guile chokes when running a .scm script from a directory with
non-ASCII characters.

A simple test script:

-------------------
#!/usr/bin/guile -s
!#
;; coding: utf-8
(display "hey")
(newline)
-------------------

$ cd ~/código/
$ ./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 #<catch-closure 9949e00> ...]
In unknown file:
   ?: 7 [apply-smob/1 #<catch-closure 9949e00>]
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 #<procedure 9957cc0 at
ice-9/boot-9.scm:4045:3 ()>]
4052: 3 [#<procedure 9957cc0 at ice-9/boot-9.scm:4045:3 ()>]
1724: 2 [%start-stack load-stack ...]
1729: 1 [#<procedure 995e738 ()>]
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"

When removing the UTF-8 character from the working directory Guile
runs as expected:

$ cd ~
$ mv -T código/ code/
$ cd code/
$ ./test.scm
hey

Locale: en_US.UTF-8

System: Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u1
(2015-12-14) i686 GNU/Linux

Guile version:
$ guile -v
guile (GNU Guile) 2.0.11
Packaged by Debian (2.0.11-deb+1-9)
...





             reply	other threads:[~2015-12-24  1:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-24  1:46 Vicente Vera [this message]
2016-03-28  3:57 ` bug#22229: Error when running script from directory with non-ASCII characters Alex Vong
2016-08-07 11:07 ` Andy Wingo
2016-08-11 17:53   ` Vicente Vera
2017-02-28 14:38     ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMfbzvDb+wRPVc5FWnstfUe_GFumHYXYO9KF--G=9SytREd8=g@mail.gmail.com' \
    --to=vicentemvp@gmail.com \
    --cc=22229@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).