From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doc open-file binary mode Date: Fri, 06 Aug 2004 09:52:40 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <877jsdm9br.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091750048 24045 80.91.224.253 (5 Aug 2004 23:54:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Aug 2004 23:54:08 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 06 01:53:59 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bss3b-0007cB-00 for ; Fri, 06 Aug 2004 01:53:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bss7B-00083s-7q for guile-devel@m.gmane.org; Thu, 05 Aug 2004 19:57:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bss74-00083P-BU for guile-devel@gnu.org; Thu, 05 Aug 2004 19:57:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bss72-00082n-PC for guile-devel@gnu.org; Thu, 05 Aug 2004 19:57:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bss72-00082J-J9 for guile-devel@gnu.org; Thu, 05 Aug 2004 19:57:32 -0400 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bss2V-0000Dk-ET for guile-devel@gnu.org; Thu, 05 Aug 2004 19:52:52 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i75Nqn4u012965 for ; Fri, 6 Aug 2004 09:52:49 +1000 Original-Received: from localhost (ppp2EED.dyn.pacific.net.au [61.8.46.237]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i75Nqmib016157 for ; Fri, 6 Aug 2004 09:52:49 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1Bss2M-0000gf-00; Fri, 06 Aug 2004 09:52:42 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3910 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3910 A few words for the "b" in open-file. slib seems to make use of this, so unless it's supposed to be a secret it may as well be described. `b' Use binary mode. On DOS systems the default text mode converts CR+LF in the file to newline for the program, whereas binary mode reads and writes all bytes unchanged. On Unix-like systems there is no such distinction, text files already contain just newlines and no conversion is ever made. The `b' flag is accepted on all systems, but has no effect on Unix-like systems. (For reference, Guile leaves text versus binary up to the C library, `b' here just adds `O_BINARY' to the underlying `open' call, when that flag is available.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel