chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] open-input-file and binary mode


From: Michele La Monaca
Subject: Re: [Chicken-users] open-input-file and binary mode
Date: Sun, 24 Aug 2014 19:39:37 +0200

On Sun, Aug 24, 2014 at 7:22 PM, John Cowan <address@hidden> wrote:
> Michele La Monaca scripsit:
>
>> So, let me understand, are you comfortable about that?
>>
>> $ cat -e f.txt
>> ^Z1234$
>>
>> (with-input-from-file "f.txt" read-line) ;; unix
>> "\x1a1234"
>>
>> (with-input-from-file "f.txt" read-line) ;; windows
>> !eof
>
> It's annoying in principle, but not in practice.  Text files don't
> normally contain ^Zs

... but binaries do. Yet, open-input-file will open them as text files
in Windows and as binaries in Unix (by default).



reply via email to

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