delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/05/21:43:29

From: ARichard AT stark DOT cc DOT oh DOT us ("Richardson,Anthony")
Subject: Q re binary mounts
5 Jun 1997 21:43:29 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199706041918.PAA28058.cygnus.gnu-win32@dialup.oar.net>
Original-To: "'Gnu-Win32 List'" <gnu-win32 AT cygnus DOT com>
X-Mailer: Worldtalk (NetConnex V4.00)/MIME
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Here's the relevant part of my mount table:

   f:\gnuwin32\root /                   native      no-mixed,text=binary

I assume that everything under / will then be treated as if the binary   
and text files the are same (no \n translation).

However, when I run the following program:

int main ()
{
  FILE *outtxt, *outbin;
  outtxt = fopen("outtxt","w");
  outbin = fopen("outbin","wb");
  fprintf(outtxt,"Hello world!\nLine 2\n");
  fprintf(outbin,"Hello world!\nLine 2\n");
}

in /home/amr, file "outtxt" contains \r before each \n.  I assumed that a   
binary mount would mean that all files are "unix" like files.

Do I not understand binary mounts or is something wrong with my setup?

Thanks
Tony Richardson

p.s. Is there a good answer to whether to mount binary or not?  I like   
the DOS/Unix compatibility that comes with not mounting binary, but I've   
been disappointed in the number of Unix programs that break.  
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019