Mercurial > emacs
comparison src/coding.c @ 17137:bd8d38879c97
(decode_eol): Fix bug of converting CRLF to LF.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 05 Mar 1997 07:02:02 +0000 |
| parents | 2cfb31c15ced |
| children | 6637001cdb4b |
comparison
equal
deleted
inserted
replaced
| 17136:424932eba3e8 | 17137:bd8d38879c97 |
|---|---|
| 1870 if (c == '\r') | 1870 if (c == '\r') |
| 1871 { | 1871 { |
| 1872 ONE_MORE_BYTE (c); | 1872 ONE_MORE_BYTE (c); |
| 1873 if (c != '\n') | 1873 if (c != '\n') |
| 1874 *dst++ = '\r'; | 1874 *dst++ = '\r'; |
| 1875 | 1875 *dst++ = c; |
| 1876 } | 1876 } |
| 1877 else | 1877 else |
| 1878 *dst++ = c; | 1878 *dst++ = c; |
| 1879 continue; | 1879 continue; |
| 1880 | 1880 |
