gget79
23rd October 2012, 21:18
Hi friends,

I have a big problem. I am working with LN FP7.

When I send a dump with source code and I install in other instance, at final of each line the source code script is added "^M" when I see it for VI, and when I see it with wscite "^M "this understand it as final line and jump line. Anybody can explain me what happens with this?

NPRao
24th October 2012, 00:31
You might have transferred the files in Binary mode via FTP, try using ASCII mode.

günther
24th October 2012, 09:57
DOS/Windows uses CR/LF (hex 0x0d/0x0a, dec 13/20) as end of line, UNIX uses only LF. So CR is regarded as data and displayed as ^M (Control-M).

Btw. You can remove that in VI with :%s/<Control-V><Control-M>$//
That meas substitute (s) within the complete file (%) the pattern Control-M at end of line by nothing.

Regards
Günther

mark_h
24th October 2012, 14:49
You can also look at the dos2unix command or the unix2dos command.

gget79
24th October 2012, 15:40
You might have transferred the files in Binary mode via FTP, try using ASCII mode.

Is OK, I have transferred the dumps in binary mode, I understand that it is correct, I know that when the dumps are transferred in ASCCI mode are modified, but you explain me that is wrong way. In others installations I always had transferred in binary mode and I don't had problems.

Your comments please.

Thank you.

gget79
24th October 2012, 15:58
DOS/Windows uses CR/LF (hex 0x0d/0x0a, dec 13/20) as end of line, UNIX uses only LF. So CR is regarded as data and displayed as ^M (Control-M).

Btw. You can remove that in VI with :%s/<Control-V><Control-M>$//
That meas substitute (s) within the complete file (%) the pattern Control-M at end of line by nothing.

Regards
Günther

Hi günther

Thank you by VI command, I didn't do so , but I did the same, I get the program script and transferred it to my pc and then I erased jumps line, after I paste, by wscite, the script but now show me compiler errors.

Before compiling, I made sure that no special characters added notepad

Please can you explain me what might have happened?

Thank you
Regards