Re: propagating a coding setting across source files

2011-12-02 Thread Mike Gran
>Not when loading a file with Latin-1 characters: > >> cat aa.scm >(define c #\ä) > >> guile >GNU Guile 2.0.3 >... >scheme@(guile-user)> (load "aa.scm") >;;; compiling /home/s/aa.scm >;;; WARNING: compilation of /home/s/aa.scm failed: >;;; ERROR: In procedure scm_lreadr: /home/s/aa.scm:1:13: unkno

Re: propagating a coding setting across source files

2011-12-02 Thread Sven Hartrumpf
Fri, 2 Dec 2011 04:55:39 -0800 (PST), spk121 wrote: > I'm pretty sure that, for 2.0.x at least, if you don't > specify an encoding, it presumes iso-8859-1 as the default. Not when loading a file with Latin-1 characters: > cat aa.scm (define c #\ä) > guile GNU Guile 2.0.3 ... scheme@(guile-user)>

Re: propagating a coding setting across source files

2011-12-02 Thread Mike Gran
> From: Sven Hartrumpf >My test program is made up of around 100 scheme files, all >encoded in latin-1. >I added to the master file the following comment: > >; coding: iso-8859-1 > >which works as documented. >How can I avoid to add this comment line to all the other files >which are currently inc

Re: propagating a coding setting across source files

2011-12-02 Thread rixed
-[ Fri, Dec 02, 2011 at 07:41:40AM -0500, Paul Smith ] > On Fri, 2011-12-02 at 11:41 +0100, ri...@happyleptic.org wrote: > > $ find where-your-files-are -type f -name '*.scm' | > > while read f; do echo '; coding: iso-8859-1' > $f ; done > > Boy I _really_ don't think you want to do th

Re: propagating a coding setting across source files

2011-12-02 Thread Paul Smith
On Fri, 2011-12-02 at 11:41 +0100, ri...@happyleptic.org wrote: > $ find where-your-files-are -type f -name '*.scm' | > while read f; do echo '; coding: iso-8859-1' > $f ; done Boy I _really_ don't think you want to do that. --

Re: propagating a coding setting across source files

2011-12-02 Thread rixed
-[ Fri, Dec 02, 2011 at 09:06:07AM +0100, Sven Hartrumpf ] > How can I avoid to add this comment line to all the other files > which are currently included by the master file using "load"? You very possibly have better reasons to refuse to add this line to your files than the mere trouble of t

propagating a coding setting across source files

2011-12-02 Thread Sven Hartrumpf
Hi all. After a long period of working with other Schemes, I am returning to guile for some tests to see what Guile has achieved in recent years. My test program is made up of around 100 scheme files, all encoded in latin-1. I added to the master file the following comment: ; coding: iso-8859-1