delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/01/12:06:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <C9A8E1D07093D111B76A0000F8C9918A038B0861@zrtpd003.us.nortel.com>
From: "Christopher Jones" <cbjones AT nortelnetworks DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: RE: inetutils questions
Date: Thu, 1 Jun 2000 10:16:48 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

------_=_NextPart_001_01BFCBD4.05EDE8EA
Content-Type: text/plain;
	charset="iso-8859-1"

> Just as a wild guess, and given the fact that this seems to 
> be the answer
> to every other problem reported on this mailing list -- EMACS 
> is probably
> adding a ^M (or \r) before the end of the lines in 
> /etc/passwd.  mkpasswd
> is probably not doing this.

Emacs on windows (not cygwin version) will open unix files in unix mode and
dos files in dos mode.  If it is a new file I think it defaults to dos mode.
If you want to force a particular mode for your next command, use:

C-x <RET> c emacs-mule-unix

or emacs-mule-dos
or emacs-mule-mac

Then open the file.  A '\' in the status bar is dos mode, and (Unix) is unix
mode of course.

Brian

------_=_NextPart_001_01BFCBD4.05EDE8EA
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2651.65">
<TITLE>RE: inetutils questions</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&gt; Just as a wild guess, and given the fact that =
this seems to </FONT>
<BR><FONT SIZE=3D2>&gt; be the answer</FONT>
<BR><FONT SIZE=3D2>&gt; to every other problem reported on this mailing =
list -- EMACS </FONT>
<BR><FONT SIZE=3D2>&gt; is probably</FONT>
<BR><FONT SIZE=3D2>&gt; adding a ^M (or \r) before the end of the lines =
in </FONT>
<BR><FONT SIZE=3D2>&gt; /etc/passwd.&nbsp; mkpasswd</FONT>
<BR><FONT SIZE=3D2>&gt; is probably not doing this.</FONT>
</P>

<P><FONT SIZE=3D2>Emacs on windows (not cygwin version) will open unix =
files in unix mode and dos files in dos mode.&nbsp; If it is a new file =
I think it defaults to dos mode.&nbsp; If you want to force a =
particular mode for your next command, use:</FONT></P>

<P><FONT SIZE=3D2>C-x &lt;RET&gt; c emacs-mule-unix</FONT>
</P>

<P><FONT SIZE=3D2>or emacs-mule-dos</FONT>
<BR><FONT SIZE=3D2>or emacs-mule-mac</FONT>
</P>

<P><FONT SIZE=3D2>Then open the file.&nbsp; A '\' in the status bar is =
dos mode, and (Unix) is unix mode of course.</FONT>
</P>

<P><FONT SIZE=3D2>Brian</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BFCBD4.05EDE8EA--

- Raw text -


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