[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: |
Fri, 22 Aug 2014 19:35:15 +0200 |
On Fri, Aug 22, 2014 at 6:20 PM, John Cowan <address@hidden> wrote:
> Michele La Monaca scripsit:
>
>> I think it would be better to change open-input-file default mode to binary.
>
> Over my dead body. The last thing I want is random CRs in text files.
Can you elaborate this sentence, please?
AFAICT, Posix systems treat text files as binaries even if you don't
explicitly say so. Windows does not.
>
>> While Posix systems doesn't care, on non-Posix ones ftell and fseek
>> might not work properly.
>
> In practice the only non-Posix system is raw Windows (i.e. non-Cygwin),
> and ftell and fseek work fine.
Microsoft doesn't think so:
http://msdn.microsoft.com/en-us/library/0ys3hc0b.aspx and I believe my
example was a clear indication of that.
Regards,
Michele
>
> --
> John Cowan http://www.ccil.org/~cowan address@hidden
> We want more school houses and less jails; more books and less arsenals;
> more learning and less vice; more constant work and less crime; more
> leisure and less greed; more justice and less revenge; in fact, more of
> the opportunities to cultivate our better natures. --Samuel Gompers
- [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 <=
- 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