From: jqb@netcom.com (Jim Balter)
Subject: Re: Bash, history file, and Tcl
21 Jan 1997 23:03:14 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <32E59D3D.6DCB.cygnus.gnu-win32@netcom.com>
References: <01BC07BB.DB4F0900@scottsdale-ts2-22.goodnet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (WinNT; I)
Original-To: "'gnu-win32@cygnus.com'" <gnu-win32@cygnus.com>
Original-Sender: owner-gnu-win32@cygnus.com

> 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@cygnus.com" with one line of text: "help".
