Provides an encoding corresponding to the current code page on Microsoft Windows, and the locale on Unix.
Pathname identifying location of buffer .
An external format spec.
A buffer whose contents are examined.
Length (an integer) up to which buffer should be examined.
The function
locale-file-encoding
consults the ANSI code page on Microsoft Windows. If the code page identifier is in
win32:*latin-1-code-pages*
,
locale-file-encoding
merges
ef-spec
with
:latin-1
. This external format writes Latin-1 on output, giving an error for any non-Latin-1 characters that are written. If the code page identifier is not in
win32:*latin-1-code-pages*
then
locale-file-encoding
merges
ef-spec
with an encoding corresponding to the current code page that gives an error for characters that cannot be encoded.
*file-encoding-detection-algorithm*
*latin-1-code-pages*
*multibyte-code-page-ef*
safe-locale-file-encoding
LispWorks User Guide and Reference Manual - 21 Dec 2011