This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Any but with uVision editor?

I edit a file out side of uVision(Microsoft Visual Studio),such as:

......
first line
second line
......
after this file is reloaded by uVision,it becomes:
......
first line

secon line
......
According to ANSI C specification,file is opened in either text mode or binary mode.It seem that the editor doesn't deal with ASCII char LF(0x0A) and CR(0x0D) correctly.

Parents Reply Children
  • Looks like Keil decides how to treat lineends based on the first one in the file, ie if the first is a linefeed only treat all subsequent carriage returns and linefeeds as individual lineends.

    You seem to be using an editor which terminates some lines with LF and some with CRLF. I'd suggest not using that editor, or using some utility to sort out the lineend sequences.

    Stefan