Subj : File: writeln() and line endings To : Nightfox From : Digital Man Date : Sun Apr 27 2025 21:36:29 Re: File: writeln() and line endings By: Digital Man to Nightfox on Sun Apr 27 2025 09:26 pm > Re: File: writeln() and line endings > By: Nightfox to Digital Man on Sun Apr 27 2025 05:27 pm > > > In my test, after creating id_rsa using console.editfile(), SSH fails to > > authenticate me, which seems to me is caused by the difference in line > > endings. > > > Is there a way to call console.editfile() so that it won't do any > > post-processing of the file? > > > Also, I'm a little unclear on why the underlying C++ methods would change > > the line endings to \r\n on Linux. Could that be a bug, or is it > > intended behavior? > > That is intended behavior. I'll look into retaining the line-ending style on > edited text files. Each editor actually has this behavior configured in SCFG: "Expand Line Feeds to CRLF" - how is yours set? -- digital man (rob) Steven Wright quote #28: The hardness of the butter is proportional to the softness of the bread. Norco, CA WX: 54.0øF, 78.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .