Re: decoding error

2015-06-17 Thread Ludovic Courtès
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

Re: decoding error

2015-06-17 Thread Federico Beffa
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

Re: decoding error

2015-06-16 Thread Federico Beffa
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

Re: decoding error

2015-06-16 Thread Ludovic Courtès
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

Re: decoding error

2015-06-16 Thread Federico Beffa
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

Re: decoding error

2015-06-16 Thread Ricardo Wurmus
"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

decoding error

2015-06-16 Thread Federico Beffa
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