Mail Archives: cygwin/1997/06/05/21:43:29
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 -