When using "with-open-file", what are the possible values of
"external-format" (besides :default) under CMUCL and SBCL?
Is there an equivalent to Clisp's make-encoding in those implementations?
I'm still clueless after hours of searching.
From: Christophe Rhodes
Subject: Re: :external-format in CMUCL and SBCL
Date:
Message-ID: <sqpskl2kar.fsf@cam.ac.uk>
xyblor <ยทยทยทยท@invalid.email> writes:
> When using "with-open-file", what are the possible values of
> "external-format" (besides :default) under CMUCL and SBCL?
There are no other interesting values for external-format under CMUCL.
SBCL's external format support is deliberately not yet documented or
fully exported, because it's not complete; in particular, certain
necessary things such as newline conventions and byte-order-mark
support are not implemented. However, assuming you haven't disabled
the Unicode character set support, you can have anything that is
present in any of the CARs of the SB-IMPL::*EXTERNAL-FORMATS* list,
which as of today is
:EUC-JP :EUCJP :|eucJP| :CP1258 :|cp1258| :WINDOWS-1258
:|windows-1258| :CP1257 :|cp1257| :WINDOWS-1257 :|windows-1257|
:CP1256 :|cp1256| :CP1255 :|cp1255| :WINDOWS-1255 :|windows-1255|
:CP1254 :|cp1254| :CP1253 :|cp1253| :WINDOWS-1253 :|windows-1253|
:CP1252 :|cp1252| :WINDOWS-1252 :|windows-1252| :CP1251 :|cp1251|
:WINDOWS-1251 :|windows-1251| :CP1250 :|cp1250| :WINDOWS-1250
:|windows-1250| :ISO-8859-14 :|iso-8859-14| :LATIN-8 :|latin-8|
:ISO-8859-13 :|iso-8859-13| :LATIN-7 :|latin-7| :ISO-8859-11
:|iso-8859-11| :ISO-8859-10 :|iso-8859-10| :LATIN-6 :|latin-6|
:ISO-8859-9 :|iso-8859-9| :LATIN-5 :|latin-5| :ISO-8859-8
:|iso-8859-8| :ISO-8859-7 :|iso-8859-7| :ISO-8859-6 :|iso-8859-6|
:ISO-8859-5 :|iso-8859-5| :ISO-8859-4 :|iso-8859-4| :LATIN-4
:|latin-4| :ISO-8859-3 :|iso-8859-3| :LATIN-3 :|latin-3| :ISO-8859-2
:|iso-8859-2| :LATIN-2 :|latin-2| :CP874 :|cp874| :CP869 :|cp869|
:CP866 :|cp866| :CP865 :|cp865| :CP864 :|cp864| :CP863 :|cp863|
:CP862 :|cp862| :CP861 :|cp861| :CP860 :|cp860| :CP857 :|cp857|
:CP855 :|cp855| :CP852 :|cp852| :CP850 :|cp850| :CP437 :|cp437|
:X-MAC-CYRILLIC :|x-mac-cyrillic| :KOI8-U :|koi8-u| :KOI8-R
:|koi8-r| :UTF-8 :UTF8 :LATIN-9 :LATIN9 :ISO-8859-15 :ISO8859-15
:EBCDIC-US :IBM-037 :IBM037 :ASCII :US-ASCII :ANSI_X3.4-1968
:ISO-646 :ISO-646-US :|646| :LATIN-1 :LATIN1 :ISO-8859-1 :ISO8859-1
Cheers,
Christophe