[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: always O_BINARY?
From: |
Neil Jerram |
Subject: |
Re: always O_BINARY? |
Date: |
Sun, 24 Feb 2013 12:08:24 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Andy Wingo <address@hidden> writes:
> Hi,
>
> Just thinking aloud here -- Windows has this O_BINARY thing that
> translates CRLF to LF when reading, and LF to CRLF when writing. It
> seems to me to be a useless thing. We already have our own i/o
> abstractions and should deal with CRLF vs LF in Scheme, I think:
>
> The (newline) function can write CRLF
> The ~% format directive should DTRT
> read-line should DTRT
>
> And since all of our hackers have been on POSIX systems, we're used to
> there being no O_BINARY/O_TEXT distinction.
>
> So, what do you think about always adding O_BINARY to files that Guile
> opens?
Maybe look at what Emacs on Windows does? I would guess it has the same
question, and probably the same answer as you've suggested.
Neil