TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: JAMES HARRIS
date: 2017-04-05 22:16:00
subject: Re: 64Gbyte flash memory

On 05/04/2017 22:04, Martin Gregorie wrote:
> On Wed, 05 Apr 2017 20:00:47 +0100, James Harris wrote:
>
>> Notepad uses CRLF line endings. AFAIK, vi uses LF only. How do you deal
>> with that?
>>
> ... but that's a one line fix in vi/vim: 1,$s/\r//

Sure, but who wants to do that each time!

> Depends. Its simple for Java because all Java programs, including the
> compiler, don't care whether the linebreak is CR, LF or CRLF. IIRC ftp
> will do that conversion if you use ASCII mode for the transfer.

Similarly, I find C compilers, make, and python don't worry about line
endings so all builds are easy.

>
> Otherwise I just run transferred the files through unix2dos or dos2unix
> in the Linux side of the transfer.

OK. It's a pity Notepad doesn't handle LF-only endings. Would save the
hassle. But Wordpad does.


--
James Harris

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.