[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Checkout text files with the Unix LF (Oxa) - from command line

From: Peter Ring
Subject: RE: Checkout text files with the Unix LF (Oxa) - from command line
Date: Sun, 7 Oct 2001 23:59:30 +0200

pfff ...

There's NOTHING except perhaps Notepad and a few other useless accessories
that need CR/LF as end-of-record on recent Windows operating systems.

If you have access to a Win2K box, please do me the favour to write a little
cmd or batch script with only LF as end-of-record, and run it.

BTW, if you use the Cygwin port of cvs for the command line, you can get the
desired behaviour. You certainly don't
need the full package of ported Gnu and open source applications; selecting
'cygwin' and 'cvs' should get you going (no guarantee). If you want to use
cvs through ssh, there's a nice description of a minimal install at, though you shouldn't select
the 'DOS' option. Who cares about Notepad.

What's flawed is the idea that the end-of-record format in any text file
should be inherently determined by the operating system. Would you also like
your OS to determine what character set you should be allowed to use?

Kind regards,
Peter Ring

-----Original Message-----
From: address@hidden [mailto:address@hidden Behalf Of
Mike Castle
Sent: 5. oktober 2001 19:41
To: address@hidden
Subject: Re: Checkout text files with the Unix LF (Oxa) - from command

On Fri, Oct 05, 2001 at 09:40:14AM +0200, PS wrote:
> I use WinCvs with checked option "Checkout text files with the Unix LF
> (Oxa)".

I would consider this a design flaw in WinCvs.

> And then I have a problem, because all updated files have every second
> empty. What to do to run that option (Unix LF) when I use cvs from command
> line in Windows.

You don't.

Either check the files out on a Unix box, or make it part of your build
process to transform the files from native format to Unix format.

check out file1.native

switch platform:
  case DOS|NT:
    dos2unix file1.native file1.unix
  case UNIX:
    cp file1.native file1.unix
  case MAC:
    mac2unix file1.native file1.unix
    error out unsupported platform

use file1.unix

     Mike Castle      address@hidden
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); --

Info-cvs mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]