unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* always O_BINARY?
@ 2013-02-24 11:39 Andy Wingo
  2013-02-24 12:08 ` Neil Jerram
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Andy Wingo @ 2013-02-24 11:39 UTC (permalink / raw)
  To: guile-devel

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?

Regards,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-04-01 21:04 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 11:39 always O_BINARY? Andy Wingo
2013-02-24 12:08 ` Neil Jerram
2013-02-24 16:55 ` Mike Gran
2013-02-24 21:17 ` Ludovic Courtès
2013-02-28  3:24   ` Adding new information to scm_t_port (was Re: always O_BINARY?) Mark H Weaver
2013-02-28  8:53     ` Andy Wingo
2013-02-28 11:04       ` Ludovic Courtès
2013-02-28 13:09         ` Andy Wingo
2013-03-01  9:03           ` Ludovic Courtès
2013-03-05 18:55       ` Mark H Weaver
2013-03-27 20:00         ` [PATCH] Add private port structure, and move iconv descriptors there Mark H Weaver
2013-03-27 20:28           ` Ludovic Courtès
2013-03-27 20:51           ` Andy Wingo
2013-03-27 21:11             ` Mark H Weaver
2013-03-31  7:52             ` [PATCH] Add internal-only port structure; " Mark H Weaver
2013-03-31 13:20               ` Ludovic Courtès
2013-03-31 15:23                 ` Mark H Weaver
2013-03-31 22:06                   ` Ludovic Courtès
2013-04-01 18:57               ` Andy Wingo
2013-04-01 20:03                 ` Mark H Weaver
2013-04-01 20:54                   ` Andy Wingo
2013-04-01 21:04                     ` Andy Wingo
2013-03-31 19:44             ` [PATCH] Add private port structure, and " Mark H Weaver
2013-03-31 22:08               ` Ludovic Courtès
2013-04-01 19:04               ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).