Re: [Chicken-hackers] negative file-position seek

2014-05-12 Thread Christian Kellermann
Hi all, I have pushed this patch (modulo NEWS rearrangements) Thank you. -- May you be peaceful, may you live in safety, may you be free from suffering, and may you live with ease. ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://l

Re: [Chicken-hackers] negative file-position seek

2014-05-02 Thread Peter Bex
On Thu, Apr 24, 2014 at 09:30:32AM -0700, Seth Alves wrote: > (set-file-position! p -1 seek/cur)) > Error: (set-file-position!) invalid negative port position > -1 Hi Seth, Thanks for your bug report and patch. I started wondering why CHICKEN is trying to catch this case in the first place, be

[Chicken-hackers] negative file-position seek

2014-04-24 Thread Seth Alves
#!/usr/local/bin/csi -script (use posix) (let ((p (open-input-file "/etc/hosts"))) (read-char p) (read-char p) (read-char p) (set-file-position! p -1 seek/cur)) --- Error: (set-file-position!) invalid negative port position -1