On Wed, 2001-09-19 at 17:33, Dave Sherman wrote:
> On Wed, 2001-09-19 at 16:49, Doug wrote:
> > just from a windows partition to a linux one, ftp however yields the same
> > result. I think it's an encoding issue of the file itself???
> 
> Assuming two things:
> 1. You can open the same files in Notepad or other plain-text editor on
> Windows just fine.
> 2. The files really are plain ASCII text.
> 
> Then it might be that during the copy process, the extra carriage-return
> characters are not being stripped out of the files. Normally, ftp will
> do this as long as it is in ASCII transfer mode. Also, it is possible to
> tell mount (in your /etc/fstab file, I don't remember the option
> off-hand) to convert Windows CR-LF combinations to just plain line feeds
> for Linux. But if your fstab is not set to do this, and/or ftp is
> transferring files using binary mode, then the Linux text editors may be
> seeing the files as binary.

I forgot one other thing. You might try to open the files in vi. If you
see a bunch of lines ending with ^M, those are the extra carriage-return
characters I mentioned. If not, then that's not the problem.

Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20010919/44660c49/attachment.pgp