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

NextPrevUpTopContentsIndex

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

Merge ef-spec with (:default :eol-style :crlf) on Microsoft Windows, (:default :eol-style :lf) on UNIX/Linux/Mac OS X. This is usually used as the last function on its list.

See also

*file-eol-style-detection-algorithm*


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex