Subject: Re: Error when running script from directory with non-ASCII characters

From: Alex Vong <[email-masked]>
Date: Mon, 28 Mar 2016 11:57:00 +0800

Hi,

I can reproduce the bug on Debian stable
using Guile from Debian and Guile from Guix (on top of Debian).

Debian version:
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux

Debian's Guile version:
guile (GNU Guile) 2.0.11
Packaged by Debian (2.0.11-deb+1-9)
Copyright (C) 2014 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Guix's Guile version:
guile (GNU Guile) 2.0.11
Copyright (C) 2014 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Using Debian's Guile:
$ ./test.scm
;;; Stat of /home/alexvong1995/c??digo/./test.scm failed:
;;; ERROR: In procedure stat: No such file or directory: "/home/alexvong1995/c??digo/./test.scm"
Backtrace:
In ice-9/boot-9.scm:
 157: 8 [catch #t #<catch-closure bf6a20> ...]
In unknown file:
   ?: 7 [apply-smob/1 #<catch-closure bf6a20>]
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 c13980 at ice-9/boot-9.scm:4045:3 ()>]
4052: 3 [#<procedure c13980 at ice-9/boot-9.scm:4045:3 ()>]
1724: 2 [%start-stack load-stack #<procedure c1e080 at ice-9/boot-9.scm:4041:10 ()>]
1729: 1 [#<procedure c2af00 ()>]
In unknown file:
   ?: 0 [primitive-load "/home/alexvong1995/c??digo/./test.scm"]

ERROR: In procedure primitive-load:
ERROR: In procedure open-file: No such file or directory: "/home/alexvong1995/c??digo/./test.scm"

Using Guix's Guile:
$ ./test.scm 
;;; Stat of /home/alexvong1995/c??digo/./test.scm failed:
;;; ERROR: In procedure stat: No such file or directory: "/home/alexvong1995/c??digo/./test.scm"
Backtrace:
In ice-9/boot-9.scm:
 157: 8 [catch #t #<catch-closure 26c9780> ...]
In unknown file:
   ?: 7 [apply-smob/1 #<catch-closure 26c9780>]
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 26e6980 at ice-9/boot-9.scm:4045:3 ()>]
4052: 3 [#<procedure 26e6980 at ice-9/boot-9.scm:4045:3 ()>]
1724: 2 [%start-stack load-stack ...]
1729: 1 [#<procedure 26fdf00 ()>]
In unknown file:
   ?: 0 [primitive-load "/home/alexvong1995/c??digo/./test.scm"]

ERROR: In procedure primitive-load:
ERROR: In procedure open-file: No such file or directory: "/home/alexvong1995/c??digo/./test.scm"