All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

default-eol-style Function

Summary

Provides a default end of line style for a file.

Package

system

Signature

default-eol-style pathname ef-spec buffer length => new-ef-spec

Arguments
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.
Values
new-ef-spec
A new external format spec created by merging ef-spec with the encoding that was found.
Description

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.

See also

*file-eol-style-detection-algorithm*


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02