On Fri, Aug 22, 2014 at 6:20 PM, John Cowan <co...@mercury.ccil.org> 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        co...@ccil.org
> 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 mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to