Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <425A9C46.9010504@tu-bs.de>
Date: Mon, 11 Apr 2005 17:48:22 +0200
From: Sebastian Schuberth <s.schuberth@tu-bs.de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin@cygwin.com
References: <425A74F1.4040906@tu-bs.de> <Pine.GSO.4.61.0504110944330.3740@slinky.cs.nyu.edu> <425A81B8.7080001@tu-bs.de> <Pine.GSO.4.61.0504111005590.3740@slinky.cs.nyu.edu> <425A9103.2070602@tu-bs.de> <Pine.GSO.4.61.0504111119280.3740@slinky.cs.nyu.edu>
In-Reply-To: <Pine.GSO.4.61.0504111119280.3740@slinky.cs.nyu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-SA-Exim-Connect-IP: 83.236.129.242
X-SA-Exim-Mail-From: s.schuberth@tu-bs.de
Subject: Re: Change Default Text File Format after installation
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on europa.cg.cs.tu-bs.de
X-Spam-Stars: 
X-Spam-Level: 
X-Spam-Status: No, score=-5.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.2
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)

>>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.

>>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).

-- 
Sebastian Schuberth

--
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/

