chicken-users
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]