Re: mc and mcedit problem - ^M

I have mc 4.6 and it still shows ^M's when processing DOS files.   I sent 
Randy this simple perl script:

    while(<>) {

Run it at the command line as, say,

       perl dos.txt > unix.txt

Myron Turner

Date sent:              Fri, 06 Jun 2003 22:17:16 -0400
From:                   Alexander Varakin <avarakin00 hotmail com>
Subject:                Re: mc and mcedit problem - ^M
To:                     mc gnome org, rwright msiinet com


You should upgrade to v 4.6.0.
This problem is fixed there - mc shows ^M exactly as vi does, so you
will never accidentally embed them into your text. I know this because
I submitted fix for this problem ;-)


----- Original Message -----
From: <rwright msiinet com>
To: <mc gnome org>
Sent: Friday, June 06, 2003 10:19 AM
Subject: mc and mcedit problem - ^M

I am using Midnight Commander under SuSE Linux Enterprise Server 8
for IBM zSeries.   I'm an old mainframer building Linux skills who
likes your product because it makes a lot of things a lot easier and
I like the
because I don't have to use vi (thank God).  I have encountered a
small problem with your editor that is driving me nuts.

I am editing some shell scripts.  At some point when I edit them,
I'm getting some sort of special character or something inserted at
the end of each line by your editor.   You cannot see these at all
when viewing the file in your editor but they're there, and if you
use the vi editor to
at the file, they show up as a  ^M at the end of each line.  I can
start with a file that does not have these, and at some point which
I haven't nailed down yet, they get put there while using mcedit.  
These are apparently causing the shell script not to run correctly. 
 What are
and why are they being put there?  Can I stop this?  Is it a bug? 
Thanks in advance for your reply.   Here is the information from mc

GNU Midnight Commander 4.5.55
Edition: text mode
Virtual File System: tarfs, extfs, ftpfs, mcfs, undelfs
With builtin Editor
Using S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
Using default locale

Randy Wright
zSeries Integration Engineer
MSI Systems Integrators
8000 Maryland Avenue, Suite 410
St. Louis, Mo.  63105
Office (314) 726-3635
Pager (314) 491-5026
Email  rwright msiinet com

Mc mailing list
Mc gnome org

Mc mailing list
Mc gnome org

Myron Turner   |   | --land safely in cyberspace--

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