guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running script from directory with UTF-8 characters


From: Chris Vine
Subject: Re: Running script from directory with UTF-8 characters
Date: Tue, 22 Dec 2015 00:34:47 +0000

On Tue, 22 Dec 2015 01:19:36 +0200
Marko Rauhamaa <address@hidden> wrote:

> Vicente Vera <address@hidden>:
> 
> > 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]