This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121375 - [60cat] Do not expand \r\n to \r\r\n on Windows
Summary: [60cat] Do not expand \r\n to \r\r\n on Windows
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker with 1 vote (vote)
Assignee: issues@versioncontrol
Depends on:
Reported: 2007-11-07 15:10 UTC by dynamite
Modified: 2009-11-19 08:49 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2007-11-07 15:10:25 UTC
[ BUILD # : 200711060000 ]
[ JDK VERSION : 1.5.* ]

On Windows it is problematic if \r\n is ever expanded to \r\r\n
because then every other line is a blank line.  I have raised this
issue on the back of an email conversion in NetCAT6.0, a crucial
snippet of which I repeat below:

>> From: Maros Sandor <Maros.Sandor@Sun.COM>
>> Date: 2007/11/07 Wed PM 12:12:32 GMT
>> To:
>> Subject: Re: [60cat][tools] CVS giving odd files
>> Well, I think the problem with Java files is that they are
committed to 
>> CVS having \r\n line endings. Windows clients then expand those \n
>> \r\n thus your Windows checkouts have \r\r\n line endings. It
happens if 
>> files with \r\n (Windows) line endings are checked-in (committed)
>> some other OS than Windows ... because Unix clients do not convert
>> to \n before commit as Windows clients do.
>> Maros
>> Daniel Sheppard wrote:
>>> I'm not sure.  It depends upon why Java files are getting the
extra blank 
line.  If it overcomes that problem, then yes as I could then use
exclusively as my CVS interface.  My concern is that I don't know
where the 
extra lines are coming from.
Comment 1 kate 2008-04-15 12:17:24 UTC
Problem with Win/Unix line endings discussed also here #25430