[PATCH]: suggest remove of special characters

gwaa wrote on Tuesday, March 17, 2009:

Hello list,
Can I suggest this patch [1], which removes ^M (see [2]) special characters in portable.h ? My workstation is under linux and the text editor shows  ^M special characters.

[1]http://gwaa.free.fr/patch/FreeRTOS/portable.h.patch
[2]http://gwaa.free.fr/images/special_char.png

Thanks

davedoors wrote on Tuesday, March 17, 2009:

I don’t think the characters should be there in any case.

gwaa wrote on Tuesday, March 17, 2009:

hello dave,
Try to use vi or vim and you will you see ^M special characters. This kind of special characters come from text editor like notepad.

saiberion wrote on Tuesday, March 17, 2009:

The special character ^M comes from Windows Editors in general.
Windows mostly needs both CR and LF special characters to display a new line.

In your case, gwaa, the linux command dos2unix might be helpful.

gwaa wrote on Tuesday, March 17, 2009:

Hello Saib,
Yes I know, I used dos2unix before generating the patch.
Thanks