Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-28 Thread Ludovic Courtès
Hello, Andy Wingo wi...@pobox.com writes: This is complicated in Guile by #!. A reasonable thing would be to have the reader have a bit on whether it actually saw an expression yet or not. If not, ^;+ [^\n]*coding: ... would set the file's encoding. I think it would make sense to follow

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-28 Thread Andy Wingo
Hi, On Thu 28 May 2009 16:37, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com writes: This is complicated in Guile by #!. A reasonable thing would be to have the reader have a bit on whether it actually saw an expression yet or not. If not, ^;+ [^\n]*coding: ... would set

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-28 Thread Ludovic Courtès
Hello, Mike Gran spk...@yahoo.com writes: This all means that grepping the coding is a true preprocessing step, divorced from the reader. Not necessarily. The encoding can be stored in a fluid, or associated with the current input port, and modified by `scm_read ()' as it encounters encoding

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-26 Thread Andy Wingo
On Tue 26 May 2009 00:22, l...@gnu.org (Ludovic Courtès) writes: However, this relies on eval-after-read semantics. That is, if the whole file is read at once, *then* evaluated, that won't work, right? Or read at once, *then* compiled, *then* evaluated; or even, read one expression at a time,

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-26 Thread Mike Gran
From: Andy Wingo wi...@pobox.com On Tue 26 May 2009 00:22, l...@gnu.org (Ludovic Courtès) writes: However, this relies on eval-after-read semantics. That is, if the whole file is read at once, *then* evaluated, that won't work, right? Or read at once, *then* compiled, *then*

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-25 Thread Ludovic Courtès
Hello, Michael Gran spk...@yahoo.com writes: add tests for encoding/decoding wide strings Nice! Just a bit of cosmetic nitpicking: * test-suite/tests/encoding_utf8.test: new Please use hyphens instead of underscores in file names, for consistency. +(setlocale LC_ALL en_US.utf8)

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475

2009-05-25 Thread Mike Gran
On Tue, 2009-05-26 at 00:22 +0200, Ludovic Courtès wrote: Hello, Just a bit of cosmetic nitpicking: * test-suite/tests/encoding_utf8.test: new Please use hyphens instead of underscores in file names, for consistency. OK +(setlocale LC_ALL en_US.utf8) [...]