Someone recently sent me a couple of
.cpp source code files. On opening the files with GNU Emacs or GVIM, I found them to have a weird character
^M near the ending of every line.
Here is a screenshot showing what I mean
When I open these same source files with Gedit, I do not see these
^M characters. What should I do? There are many files in question here, so opening and doing a search-replace operation by replaceing with an empty string looks like a back-breaking operation.
Strangely enough these files compile cleanly when I compile with GCC. What is going on here. What should I do?