public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: UNIX versus DOS Line ending
@ 2000-01-20  5:14 Earnie Boyd
  2000-01-20  9:20 ` Artem Hodyush
  0 siblings, 1 reply; 4+ messages in thread
From: Earnie Boyd @ 2000-01-20  5:14 UTC (permalink / raw)
  To: Uwe Bonnes, cygwin

--- Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> wrote:
> 
> Hallo,
> 
> for those livin in a mixed Unix/Dos environment, the (bad) habbit of
> Dos/Windows programs to replace LF with CR/LF has probably caused
> grief before. Especially Macros going over several lines get unreadable.
> 
> Couldn't we make GCC swallow CR/LF?
> 

It already does!!  But, you have to be in "Text Mode Processing".  See the
archives.

> Would such a patch have chances to get into the standard GCC?
> 

Depends on the patch and your assignment forms acceptance.  A nice feature
would be to have an "Auto Mode Processing" such that \n, \r\n, or \r gets used
automatically based on the content of the file.
 

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: UNIX versus DOS Line ending
  2000-01-20  5:14 UNIX versus DOS Line ending Earnie Boyd
@ 2000-01-20  9:20 ` Artem Hodyush
  0 siblings, 0 replies; 4+ messages in thread
From: Artem Hodyush @ 2000-01-20  9:20 UTC (permalink / raw)
  To: cygwin

> --- Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> wrote:
> > 
> > Hallo,
> > 
> > for those livin in a mixed Unix/Dos environment, the (bad) habbit of
> > Dos/Windows programs to replace LF with CR/LF has probably caused
> > grief before. Especially Macros going over several lines get unreadable.
> > 
> > Couldn't we make GCC swallow CR/LF?
> > 
> 
> It already does!!  But, you have to be in "Text Mode Processing".  See the
> archives.

It already does even in binary mode, if gcc is configured with 
--enable-cpplib. It seems that this gcc feature will be enabled by 
default in the not-so-distant future.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: UNIX versus DOS Line ending
@ 2000-01-20  5:53 N8TM
  0 siblings, 0 replies; 4+ messages in thread
From: N8TM @ 2000-01-20  5:53 UTC (permalink / raw)
  To: earnie_boyd, bon, cygwin

 A nice feature
 would be to have an "Auto Mode Processing" such that \n, \r\n, or \r gets
 usedautomatically based on the content of the file.

What about files which are inconsistent, like the .texi files in the gcc source distribution, where there is a mixture of line termination types?  

Tim
tprince@computer.org

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* UNIX versus DOS Line ending
@ 2000-01-20  4:31 Uwe Bonnes
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Bonnes @ 2000-01-20  4:31 UTC (permalink / raw)
  To: cygwin

Hallo,

for those livin in a mixed Unix/Dos environment, the (bad) habbit of
Dos/Windows programs to replace LF with CR/LF has probably caused
grief before. Especially Macros going over several lines get unreadable.

Couldn't we make GCC swallow CR/LF?

Would such a patch have chances to get into the standard GCC?

Bye

Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-01-20  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-20  5:14 UNIX versus DOS Line ending Earnie Boyd
2000-01-20  9:20 ` Artem Hodyush
  -- strict thread matches above, loose matches on Subject: below --
2000-01-20  5:53 N8TM
2000-01-20  4:31 Uwe Bonnes

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).