Next Previous Up Top Contents Index

18 The SYSTEM Package

default-file-encoding

Function

Summary

Provides a default encoding in cases where an encoding cannot be deduced.
Package

system

Signature

default-file-encoding 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

Default external format spec created by merging ef-spec with the encoding that was found.

Description

Consults the ANSI code page in Windows, and merges ef-spec with:shift-jis for 932 and 10001, and:latin-1 otherwise. This is usually used as the last function on the*FILE-ENCODING-DETECTION-ALGORITHM* list.
Consults the locale on UNIX.
See also

*file-encoding-detection-algorithm*


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker