delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/11/11:57:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 11 Apr 2005 11:56:16 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Sebastian Schuberth <s DOT schuberth AT tu-bs DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: Change Default Text File Format after installation
In-Reply-To: <425A9C46.9010504@tu-bs.de>
Message-ID: <Pine.GSO.4.61.0504111154300.3740@slinky.cs.nyu.edu>
References: <425A74F1 DOT 4040906 AT tu-bs DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0504110944330 DOT 3740 AT slinky DOT cs DOT nyu DOT edu> <425A81B8 DOT 7080001 AT tu-bs DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0504111005590 DOT 3740 AT slinky DOT cs DOT nyu DOT edu> <425A9103 DOT 2070602 AT tu-bs DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0504111119280 DOT 3740 AT slinky DOT cs DOT nyu DOT edu> <425A9C46 DOT 9010504 AT tu-bs DOT de>
MIME-Version: 1.0

On Mon, 11 Apr 2005, Sebastian Schuberth wrote:

> > > Well, I only need a solution for my special case *now*, so it's okay
> > > for me if mounts are going to be stored anywhere else in the future.
> > > My problem is: I've set "Default Text File Format" to "Unix" during
> > > setup. Now I just want to change my Cygwin installation as if I had
> > > specified "DOS" instead.
> >
> > You can simply re-run setup in the "Keep" mode and change the
> > filesystem type to "DOS"...
>
> I tried that, but I always used VIM to see if it worked ... I didn't
> know VIM (being a text editor) always creates files in binary mode.
>
> > > > mount -sbc /cygdrive
> > >
> > > Thanks. I've changed all my mounts to "textmode".
> >
> > Including the cygdrive prefix?
>
> I also re-mounted the drives without "cygdrive" prefix, if that's what
> you mean.

All of this would've been cleared long ago if you'd attached the output of
"cygcheck -svr" as requested in <http://cygwin.com/problems.html>.

> > > What I don't get: If I now create a file using VIM and look at it
> > > afterwards using "od -c", it still contains \n instead of \r\n line
> > > ends. Why is that?
> >
> > Because VIm always creates files in binary mode, IIRC (perhaps because
> > it is linked with binmode.o, not automode.o?).  Try ":set
> > fileformat=dos" before saving the file.  You can also put the above
> > command in your ~/.vimrc.
>
> Strange: "set fileformat=dos" works in the editor, but not when entered
> into ".vimrc" (other commands in there work).

In your .vimrc you'd probably need ":set fileformats=dos,unix" (see ":help
'fileformats'" and ":help 'fileformat'" in VIm).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019