Function
system
detect-japanese-encoding-in-file pathname ef-spec buffer length => new-ef-spec
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.
A new external format spec created by merging ef-spec with the Japanese encoding that was found.
:jis,:sjis,:euc,:unicode and:ascii, and try to determine which of these it is, by looking for distinctive byte sequences in buffer up to length. If found, merge ef-spec with that encoding.