Function
system
detect-eol-style pathname ef-spec buffer length => new-ef-spec
Pathname identifying location of buffer.
An external format spec.
A buffer whose contents are examined.
Length (an integer) up to which buffer should be examined.
A new external format spec created by merging ef-spec with the encoding that was found.
(unsigned-byte 8), search buffer up to length for the first occurrence of the byte(10). If found, and it is preceded in buffer by(13), merge ef-spec with (:default :eol-style :crlf)
(13), merge ef-spec with (:default :eol-style :lf)
(unsigned-byte 16), search buffer up to length for the first occurrence of the byte sequence(13 0 10). If found, merge ef-spec with (:default :eol-style :crlf)
(13 0 10) is not found, search buffer up to length for(10 0) or(0 10). If found, merge ef-spec with (:default :eol-style :lf)