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
releases/22
parent
7d20b69a33
commit
ae3ac2d265
Loading…
Reference in new issue