Check for (and correct) dbl-spacing when opening files...

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Check for (and correct) dbl-spacing when opening files...

Post by Karlis »

EvilBMP wrote:I think so too. Anyways I can not understand why a SSH server should add those extra CRs...
Actually it is obvious - the algorithm is to convert LF (unix format) to CRLF (windows format) during the transfer (proper ASCII download). Or to convert CRLF to LF during the transfer from Windows pc to unix server (proper ASCII mode upload).

So when you upload from windows to unix in ascii mode CRLF turns into LF. When you download from unix to windows in ascii mode LF turns into CRLF. Problems start to occur if you have managed to get the file uploaded WIRHOUT CRLF->LF conversion (in binary mode) and are trying to download WITH LF->CRLF conversion (ascii mode). You end up having (CR)LF->(CR)CRLF conversion.

It was simple from the very beginning, I just never thought about it this way. Your screenshot opened my eyes :D Ultimate contribution, I'd say.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
EvilBMP
Posts: 120
Joined: Thu Jan 04, 2007 1:57 am
Location: Germany

Re: Check for (and correct) dbl-spacing when opening files...

Post by EvilBMP »

I'm glad, that we found the route of all evil ;)
Post Reply