CTRL-M and CTRL-J characters in files

2004-03-24 Thread prolist
I uses Windows 2000 machine and use Jcreator LE for my Java code. When I am
adding files to CVS using WinCVS client, somehow other memebers of team
using Linux machines are getting ^M^J in their files. Why is it happening
and moreover how can I get rid of this automatically while checking-in and
checking-out fiiles.

There is a settings in WinCVS preferences Global tab which has a checkbox
Checkout text files with the Unix LF (0xa) and I already have this
checkbox checked.

What should I do to avoid this problem?

Thanks!!!




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


RE: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Jim.Hyslop
prolist wrote:
 I uses Windows 2000 machine and use Jcreator LE for my Java 
 code. When I am
 adding files to CVS using WinCVS client, somehow other 
 memebers of team
 using Linux machines are getting ^M^J in their files. Why is 
 it happening
 and moreover how can I get rid of this automatically while 
 checking-in and
 checking-out fiiles.
How are you accessing the repository?

-- 
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (http://www.leitch.com)
Columnist, C/C++ Users Journal (http://www.cuj.com/experts)




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread u . tropp
Hi,

 I uses Windows 2000 machine and use Jcreator LE for my Java code. When I am
 adding files to CVS using WinCVS client, somehow other memebers of team
 using Linux machines are getting ^M^J in their files. Why is it happening
 and moreover how can I get rid of this automatically while checking-in and
 checking-out fiiles.
 
 There is a settings in WinCVS preferences Global tab which has a checkbox
 Checkout text files with the Unix LF (0xa) and I already have this
 checkbox checked.

On a Windows system you normally should *not* check this checkbox if your editor uses 
CR/LF (^M/^J) as line ending.

Or, if this option is checked you must configure the editor to use Unix LF instead of 
CR/LF if possible.

Hope this helps,
Uwe


To: [EMAIL PROTECTED]
[EMAIL PROTECTED]



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Steve deRosier
The CVS client automatically handles the differences between Windows and UNIX line endings by converting the files when you do the checkout or update (or commit, or...).  So, as unintuitive as it sounds, uncheck this option.  Then you'll get the Windows line endings without those being imported into the repository.  To cleanup your current problem, I'd sugest have your Linux guys check out the files, run them through dos2unix until the files are cleaned up, check them in, and then you need to do an update or checkout without that box checked.

- Steve

prolist wrote:
I uses Windows 2000 machine and use Jcreator LE for my Java code. When I am
adding files to CVS using WinCVS client, somehow other memebers of team
using Linux machines are getting ^M^J in their files. Why is it happening
and moreover how can I get rid of this automatically while checking-in and
checking-out fiiles.
There is a settings in WinCVS preferences Global tab which has a checkbox
Checkout text files with the Unix LF (0xa) and I already have this
checkbox checked.
What should I do to avoid this problem?

Thanks!!!



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Derek Robert Price
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Larry Jones wrote:

prolist writes:

There is a settings in WinCVS preferences Global tab which has a checkbox
Checkout text files with the Unix LF (0xa) and I already have this
checkbox checked.

What should I do to avoid this problem?


Uncheck the checkbox.  Use Unix line endings on Unix platforms, Windows
line endings on Windows platforms.


...because your WinCVS is checking out with UNIX EOLs just fine but your
text editor is most likely saving files with Windows line endings (\r\n
- - \r and CTRL-M are the same but I don't know where your CTRL-Js are
coming from) and WinCVS isn't converting the line endings back to UNIX
format on commit because you requested that it not do so.

Derek

- --
*8^)

Email: [EMAIL PROTECTED]

Get CVS support at http://ximbiot.com!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAYeGKLD1OTBfyMaQRArXPAJ9Lek+HQGAZZh4bS+ez4g30a5hX4gCgzsCb
4UskFZrV4/FOElzXp+2OU6I=
=vDop
-END PGP SIGNATURE-




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread prolist
But, isn't that option only about checkouts, what about check-ins I
can't locate any poption specific to that.

Thanks!!!

- Original Message -
From: Steve deRosier [EMAIL PROTECTED]
To: prolist [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 1:01 AM
Subject: Re: CTRL-M and CTRL-J characters in files


 The CVS client automatically handles the differences between Windows and
UNIX line endings by converting the files when you do the checkout or update
(or commit, or...).  So, as unintuitive as it sounds, uncheck this option.
Then you'll get the Windows line endings without those being imported into
the repository.  To cleanup your current problem, I'd sugest have your Linux
guys check out the files, run them through dos2unix until the files are
cleaned up, check them in, and then you need to do an update or checkout
without that box checked.

 - Steve

 prolist wrote:
  I uses Windows 2000 machine and use Jcreator LE for my Java code. When I
am
  adding files to CVS using WinCVS client, somehow other memebers of team
  using Linux machines are getting ^M^J in their files. Why is it
happening
  and moreover how can I get rid of this automatically while checking-in
and
  checking-out fiiles.
 
  There is a settings in WinCVS preferences Global tab which has a
checkbox
  Checkout text files with the Unix LF (0xa) and I already have this
  checkbox checked.
 
  What should I do to avoid this problem?
 
  Thanks!!!
 
 
 
 
  ___
  Info-cvs mailing list
  [EMAIL PROTECTED]
  http://mail.gnu.org/mailman/listinfo/info-cvs




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Steve deRosier
The line ending conversion happens with every (relevant) command that cvs does.  Checkouts, commits, updates, exports, etc.  Different OSes use different line endings on text files.  CVS deals with text files, and so handles this very nicely. (but, see the earlier comment about the -kb flags)

- Steve

prolist wrote:
But, isn't that option only about checkouts, what about check-ins I
can't locate any poption specific to that.
Thanks!!!

- Original Message -
From: Steve deRosier [EMAIL PROTECTED]
To: prolist [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 1:01 AM
Subject: Re: CTRL-M and CTRL-J characters in files


The CVS client automatically handles the differences between Windows and
UNIX line endings by converting the files when you do the checkout or update
(or commit, or...).  So, as unintuitive as it sounds, uncheck this option.
Then you'll get the Windows line endings without those being imported into
the repository.  To cleanup your current problem, I'd sugest have your Linux
guys check out the files, run them through dos2unix until the files are
cleaned up, check them in, and then you need to do an update or checkout
without that box checked.
- Steve

prolist wrote:

I uses Windows 2000 machine and use Jcreator LE for my Java code. When I
am

adding files to CVS using WinCVS client, somehow other memebers of team
using Linux machines are getting ^M^J in their files. Why is it
happening

and moreover how can I get rid of this automatically while checking-in
and

checking-out fiiles.

There is a settings in WinCVS preferences Global tab which has a
checkbox

Checkout text files with the Unix LF (0xa) and I already have this
checkbox checked.
What should I do to avoid this problem?

Thanks!!!



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Derek Robert Price
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

prolist wrote:

But, isn't that option only about checkouts, what about check-ins I
can't locate any poption specific to that.


The WinCVS preferences aren't explicit enough in their labling, but the
option is symmetrical.  If you ask it not to convert LF to CR/LF on
checkout, it won't try to convert CR/LF back to LF on checkin.

Derek

- --
*8^)

Email: [EMAIL PROTECTED]

Get CVS support at http://ximbiot.com!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAYehELD1OTBfyMaQRAqlmAJ9YMh9VYZ1LNjOxIj02S9ijwVissgCeOGA4
SkFghzwL6amRxC7DM5mgaxE=
=NkwM
-END PGP SIGNATURE-




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


RE: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Jim.Hyslop
prolist wrote:
 But, isn't that option only about checkouts, what about 
 check-ins I
 can't locate any poption specific to that.
WinCVS probably (and properly) assumes that the option will apply in both
directions. It really does *NOT* make sense to use one line ending on
check-out, but another on check-in.

BTW, I disagree with Steve's comment about this being unintuitive - it makes
perfect sense. Use the line-ending convention for the platform you're using.

-- 
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (http://www.leitch.com)
Columnist, C/C++ Users Journal (http://www.cuj.com/experts)



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Frederic Brehm
At 02:31 PM 3/24/2004, Steve deRosier wrote:
To cleanup your current problem, I'd sugest have your Linux guys check out 
the files, run them through dos2unix until the files are cleaned up, check 
them in, and then you need to do an update or checkout without that box 
checked.
You might also want to make sure that the files are not defined as binary. 
cvs status  will show something like Sticky Options: -kb for binary files.

Fred

___
Frederic W. Brehm, Sarnoff Corporation, http://www.sarnoff.com/


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: CTRL-M and CTRL-J characters in files

2004-03-24 Thread Larry Jones
prolist writes:
 
 But, isn't that option only about checkouts, what about check-ins

It affects both.

-Larry Jones

I think football is a sport the way ducks think hunting is a sport. -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs