Federico Beffa skribis:
> On Tue, Jun 16, 2015 at 6:12 PM, Federico Beffa wrote:
>> On Tue, Jun 16, 2015 at 1:20 PM, Ludovic Courtès wrote:
>>> (paramaterize ((%default-port-encoding "ISO-8859-1"))
>>> (substitute* ...))
>
> By the way, '%default-port-encoding' is a fluid and therefore, i
On Tue, Jun 16, 2015 at 6:12 PM, Federico Beffa wrote:
> On Tue, Jun 16, 2015 at 1:20 PM, Ludovic Courtès wrote:
>> (paramaterize ((%default-port-encoding "ISO-8859-1"))
>> (substitute* ...))
By the way, '%default-port-encoding' is a fluid and therefore, if I
use 'parameterize' instead of
On Tue, Jun 16, 2015 at 1:20 PM, Ludovic Courtès wrote:
> (paramaterize ((%default-port-encoding "ISO-8859-1"))
> (substitute* ...))
>
> (This is equivalent to what Ricardo suggested, but making the encoding
> name explicit is clearer in this case.)
Agreed,
Thanks!
Fede
Federico Beffa skribis:
> Emacs says that the file is encoded with iso-8859-1-unix
In that case the solution is to tell Guile to use ISO-8859-1 as the
default encoding where you fiddle with that file:
(paramaterize ((%default-port-encoding "ISO-8859-1"))
(substitute* ...))
(This is equiv
On Tue, Jun 16, 2015 at 12:07 PM, Ricardo Wurmus
wrote:
> How about this:
>
> (with-directory-excursion el-dir
> (with-fluids ((%default-port-encoding #f))
> (substitute* (find-files "." "\\.el$") (("/bin/sh") (which "sh")
That did the trick.
Thanks!
Fede
"sh"
>
> A particular file causes Guile to produce the following error:
>
> ice-9/boot-9.scm:106:20: Throw to key `decoding-error' with args
> `("scm_getc" "input decoding error" 84 #)'.
How about this:
(with-directory-excursion el-dir
(with-fluids ((%default-port-encoding #f))
(substitute* (find-files "." "\\.el$") (("/bin/sh") (which "sh")
~~ Ricardo
A particular file causes Guile to produce the following error:
ice-9/boot-9.scm:106:20: Throw to key `decoding-error' with args
`("scm_getc" "input decoding error" 84 #)'.
This appears to be due to the following characters: "«" "»". The build
en