mirror of https://github.com/asterisk/asterisk
The DOS line counting mode was looking for LF CR, when it should have
been looking for CR LF. As a result, line mode never worked properly
for files with DOS (CR LF) line endings, instead erroneously
triggering an error about the offset being negative.
This bug has been present since line mode was introduced in
commit 50d5f134c8. LF CR is not
a line ending sequence that exists in any line ending format.
Swap the order around so that DOS mode works properly.
Also clarify some of the documentation around FILE operation.
Resolves: #2164
pull/2167/head
parent
a596c215df
commit
48e8d5a7ac
Loading…
Reference in new issue