Next Prev Up Top Contents Index

find-filename-pattern-encoding-match

Function
Summary

Finds the encoding of a file based on the filename.

Package

system

Signature

find-filename-pattern-encoding-match 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

Corresponding external format spec for the encoding that was found.

Description

Compares pathname (using pathname-match-p ) with elements of *filename-pattern-encoding-matches*. If a match is found, return the corresponding external format spec.

See also

*file-encoding-detection-algorithm*
*filename-pattern-encoding-matches*


LispWorks Reference Manual - 25 Jul 2003

Next Prev Up Top Contents Index