Mail Archives: cygwin/1997/01/21/23:03:14
> One question remains, however--does mounting "C:" in binary mode break
> non-GNU-Win32 programs? In particular, I use NTemacs which seems to
> insist on handling files in text mode. Did I miss something that avoids
> the problem?
>
> Not that I could see, in reading through the faq, and online docs
The NTEmacs switch is (using-unix-filesystems t)
but that hits everything. You can do it fs by fs (actually dir tree by
dir tree) by using untranslate.el; search the NTEmacs FAQ (
http://www.cs.washington.edu/homes/voelker/ntemacs.html
) for "untranslate".
> c = getchar();
> while (c != EOF) {
> /* Eat any \r's... they shouldn't be here */
> while (c == '\r') c = getchar();
> if (c == EOF) break;
> putchar(c);
> c = getchar();
> }
Uh, sure, if you are into obfuscation and exercising the optimizer, but
while ((c = getchar()) != EOF)
if (c != '\r')
putchar(c);
does exactly the same thing.
--
<J Q B>
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -