[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] open-input-file and binary mode
From: |
Michele La Monaca |
Subject: |
[Chicken-users] open-input-file and binary mode |
Date: |
Fri, 22 Aug 2014 18:05:52 +0200 |
Hi,
I think it would be better to change open-input-file default mode to binary.
While Posix systems doesn't care, on non-Posix ones ftell and fseek
might not work properly.
For example, on Windows:
$ cat f.txt
1
2
3
4
(call-with-input-file "f.txt" (lambda (p) (read-string 4 p)
(file-position p))) -> 2
Regards,
Michele
- [Chicken-users] open-input-file and binary mode,
Michele La Monaca <=
- Re: [Chicken-users] open-input-file and binary mode, John Cowan, 2014/08/22
- Re: [Chicken-users] open-input-file and binary mode, Michele La Monaca, 2014/08/22
- Re: [Chicken-users] open-input-file and binary mode, John Cowan, 2014/08/22
- Re: [Chicken-users] open-input-file and binary mode, Michele La Monaca, 2014/08/24
- Re: [Chicken-users] open-input-file and binary mode, John Cowan, 2014/08/24
- Re: [Chicken-users] open-input-file and binary mode, Michele La Monaca, 2014/08/24
- Re: [Chicken-users] open-input-file and binary mode, John Cowan, 2014/08/24
- Re: [Chicken-users] open-input-file and binary mode, Michele La Monaca, 2014/08/24
- Re: [Chicken-users] open-input-file and binary mode, John Cowan, 2014/08/24