Provides a default end of line style for a file.
system
default-eol-style pathname ef-spec buffer length => new-ef-spec
| pathname⇩ |
Pathname identifying location of buffer. |
| ef-spec⇩ |
An external format spec. |
| buffer⇩ |
A buffer whose contents are examined. |
| length⇩ |
Length (an integer) up to which buffer should be examined. |
| new-ef-spec |
A new external format spec created by merging ef-spec with the encoding that was found. |
The function default-eol-style merges ef-spec with (:default :eol-style :crlf) on Microsoft Windows, (:default :eol-style :lf) on non-Windows platforms. This is usually used as the last function on its list.
pathname, buffer and length are ignored.
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:47