From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: bothner@cygnus.com (Per Bothner) Cc: smurf@noris.de, egcs@cygnus.com Subject: Re: cpp w/DOS line feeds Date: Thu, 21 Jan 1999 10:09:00 -0000 Message-id: <199901211809.KAA04467@atrus.synopsys.com> References: <199901211733.JAA02460@cygnus.com> X-SW-Source: 1999-01/msg00027.html > How does your patch handle lone CR? This should be handled as > a line-terminator as well. (Lone CR is used a line-terminator > on MacOS, plus a few other rare/obsolete OSes.) Therfore, just > throwing away CR does not do the Right Thing. Unix has \n, DOS/Windows has \r\n, Mac has \r. All three should be treated as if \n were typed. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: bothner@cygnus.com (Per Bothner) Cc: smurf@noris.de, egcs@cygnus.com Subject: Re: cpp w/DOS line feeds Date: Sun, 31 Jan 1999 23:58:00 -0000 Message-ID: <199901211809.KAA04467@atrus.synopsys.com> References: <199901211733.JAA02460@cygnus.com> X-SW-Source: 1999-01n/msg00791.html Message-ID: <19990131235800.BYbAfOOE7p81Y95V7pKorK02n7KNGbE5kHiXVSMB2XE@z> > How does your patch handle lone CR? This should be handled as > a line-terminator as well. (Lone CR is used a line-terminator > on MacOS, plus a few other rare/obsolete OSes.) Therfore, just > throwing away CR does not do the Right Thing. Unix has \n, DOS/Windows has \r\n, Mac has \r. All three should be treated as if \n were typed.