/ Check-in [b1b48be1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines. This provides consistency between MSVC and CYGWIN builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b1b48be1cf55f3179eab8824cf5fee8100518845
User & Date: shaneh 2009-12-17 21:07:15
Original Comment: In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.
Context
2009-12-17
21:07
Updated and added new test cases for CLI. check-in: 29e3c8da user: shaneh tags: trunk
21:07
In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines. This provides consistency between MSVC and CYGWIN builds. check-in: b1b48be1 user: shaneh tags: trunk
21:05
Fix typo in comment of prepare.c. check-in: 333c3ffe user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  1208   1208         zLine[n] = 0;
  1209   1209         eol = 1;
  1210   1210         break;
  1211   1211       }
  1212   1212       while( zLine[n] ){ n++; }
  1213   1213       if( n>0 && zLine[n-1]=='\n' ){
  1214   1214         n--;
         1215  +      if( n>0 && zLine[n-1]=='\r' ) n--;
  1215   1216         zLine[n] = 0;
  1216   1217         eol = 1;
  1217   1218       }
  1218   1219     }
  1219   1220     zLine = realloc( zLine, n+1 );
  1220   1221     return zLine;
  1221   1222   }