public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: indent.exe strangeness
  2001-11-11  8:26           ` Christopher Faylor
@ 2001-11-11  8:26 Robert Collins
  2001-11-11  8:26 ` Kevin Schnitzius
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Robert Collins @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin


===
----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin@cygwin.com>
Sent: Friday, November 16, 2001 6:21 AM
Subject: Re: indent.exe strangeness


> On Thu, Nov 15, 2001 at 11:19:12PM +1100, Robert Collins wrote:
> >> What about a patch that would fopen() every file in binmode and
write it
> >> back according to the mount?
> >
> >I think that textmode.o is the correct tool rather than a patch -
read
> >every file in textmode (they are source after all :]) and write in
> >textmode.
>
> No.  That would end up putting CRLF on every file.  I doubt that
people
> with binmode mounts would be pleased.

They shouldn't care if all the text process tools have been ported
correctly. Thats the whole point of textmode and binmode ain't it?

Certinaly squid _always_ writes text data with textmode, and binary data
with binmode, and I've heard no complaints w.r.t this.

> automode.o should take any file and create a file with only LF line
> endings.  This will be correctly interpreted by just about every tool
> except older versions of notepad.exe.

FWIW my win2k notepad still chokes. Anyway, I've start to be picky here,
so I'll just be quite now :}.

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* indent.exe strangeness
@ 2001-11-11  8:26 BMetzenthen
  0 siblings, 0 replies; 16+ messages in thread
From: BMetzenthen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

I've tried a few approaches with obtaining (or building) indent.exe but the
executable always seems to include extra ^M characters (usually following
the whitespace which is inserted at the start of lines) to the beautified
output.

Does anyone know if this is:
(a) a run-time configuration problem,
(b) a corrupted/out-of-date dll, or
(c) a known bug with indent?


Bill

======================================================================================

"The information contained in this e-mail message may be confidential information, and may also be privileged. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited.  If you have received this message in error, please notify us by return email and delete the original message."

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: indent.exe strangeness
@ 2001-11-11  8:26 BMetzenthen
  0 siblings, 0 replies; 16+ messages in thread
From: BMetzenthen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Kevin Schnitzius; +Cc: cygwin


Bingo!  That was the problem.  Thanks.

I was using /cygdrive/..., which are binmode.

Mounting the win directories under the cygwin heirarchy in text mode solved
that little problem.

I operate cygwin the same way as I use Linux, ignoring binmode/textmode
until it bites me (usually, this means ^M characters appear at line
endings, not in the middle of lines).  I assume that the appropriate thing
to do here would be to patch the indent sources to make it work as expected
when using binary mounted directories.

Bill


                                                                                                                 
                    Kevin Schnitzius                                                                             
                    <kevin.schnitzius@c        To:     "'BMetzenthen@cochlear.com.au'"                           
                    itrix.com>                 <BMetzenthen@cochlear.com.au>, cygwin@cygwin.com                  
                                               cc:                                                               
                    15/11/2001 14:05           Subject:     RE: indent.exe strangeness                           
                                                                                                                 
                                                                                                                 




Are your source drives mounted as binary or text?

Kevin

 -----Original Message-----
From:           BMetzenthen@cochlear.com.au
[mailto:BMetzenthen@cochlear.com.au]
Sent:           Wednesday, November 14, 2001 21:58
To:        cygwin@cygwin.com
Subject:        indent.exe strangeness

I've tried a few approaches with obtaining (or building) indent.exe but the
executable always seems to include extra ^M characters (usually following
the whitespace which is inserted at the start of lines) to the beautified
output.

Does anyone know if this is:
(a) a run-time configuration problem,
(b) a corrupted/out-of-date dll, or
(c) a known bug with indent?


Bill

============================================================================

==========

"The information contained in this e-mail message may be confidential
information, and may also be privileged. If you are not the intended
recipient, any use, interference with, disclosure or copying of this
material is unauthorised and prohibited.  If you have received this message
in error, please notify us by return email and delete the original
message."

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/




======================================================================================

"The information contained in this e-mail message may be confidential information, and may also be privileged. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited.  If you have received this message in error, please notify us by return email and delete the original message."

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-11-15 22:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11  8:26 indent.exe strangeness Robert Collins
2001-11-11  8:26 ` Kevin Schnitzius
2001-11-11  8:26   ` Christopher Faylor
2001-11-11  8:26     ` Robert Collins
2001-11-11  8:26       ` Gerrit P. Haase
2001-11-11  8:26         ` Robert Collins
2001-11-11  8:26           ` Christopher Faylor
2001-11-11  8:26             ` Gerrit P. Haase
2001-11-11  8:26               ` Christopher Faylor
2001-11-11  8:26           ` Gerrit P. Haase
2001-11-11  8:26         ` Christopher Faylor
2001-11-11  8:26 ` Christopher Faylor
2001-11-11  8:26   ` Larry Hall (RFK Partners, Inc)
     [not found] ` <156864442883.20011115234344@familiehaase.de>
2001-11-11  8:26   ` Robert Collins
2001-11-11  8:26 BMetzenthen
2001-11-11  8:26 BMetzenthen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).