|
|
We have developers using Windows and Linux. When we check in sources on Linux, the next Windows user who checks it out sees the source as double-spaced within JBuilder. What are we doing wrong? |
| CVS automatically handles newline conversions. When source files are
checked in with cvs, it knows what the newlines in the file should
look like and converts them to an internal representaton for the
repository. When the files are checked out again, the internal
representation is converted to the newline format native to the machine
receiving the files.
Hence, a unix machine will receive files with unix newlines and a windows machine will receive files with windows newlines. If you checkout a file on a windows machine, make changes, and then transfer the file to a unix machine to check it in, the unix cvs command will not perform the correct newline conversion as the file is written into the repository. The next windows user who checks out the file will receive it with extra newlines! This situation is most common when a Samba share is being used to share source files between windows and unix developers. The samba share may or may not be configured to auto-convert text file newlines.
JBuilder will handle the file either way, as long as the newlines
within the file are consistant (right or wrong.) However, JBuilder
will get very confused if half the file has windows newlines and the
other half has unix newlines.
| |
| [Append to This Answer] | |
| 2001-Jun-12 12:21pm |
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||