RE: Is it possible to use custom extension of compiled files (Windows 64bit).

"Uģis Lācis (as ugis dot lacis at equa dot se)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <GV3P280MB142057F03720CFA1EB4259799012A@GV3P280MB1420.SWEP280.PROD.OUTLOOK.COM>
Ok, perfect, thanks for the pointer.

Did not occur to me to try to search for "types".

Best,
Ugis

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Martin Simmons
Sent: Friday, 19 September 2025 18:44
To: [email protected]
Subject: Re: Is it possible to use custom extension of compiled files (Windows 64bit).

Yes, you can add it to system:*binary-file-types*

https://www.lispworks.com/documentation/lw81/lw/lw-sys-12.htm#LWUGRM)*binary-file-types*

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/



>>>>> On Wed, 17 Sep 2025 17:36:50 +0000, Uģis Lācis (as ugis dot lacis at equa dot se) said:
> 
> I am currently experimenting with compiling and loading my code in both SBCL and LispWorks on 64bit Windows. LispWorks behaves seemingly strange. I can get file to compile and load just fine as long as I use *.64ofasl extension. If I instead use :output-file option for compile-file function and use a custom extension (such as *.fsl or *.fasl), compilation executes without problems as previously, whereas loading fails with:
> Error: Cannot read character Backspace as part of a token because it has constituent trait 'invalid'.
> 
> It seems that the file gets treated as a text file instead. I have tried to look for any option to fix this (or any reference to the limitation) in documentation but have not found anything. SBCL does not seem to have this issue.
> 
> I could, of course, move over to .64ofasl extension, but for historical reasons we compile files into *.fsl files and if there is something easy/obvious I am missing, it could be nice to stick with this. Does anyone have any comments on this?
> 
> Best wishes,
> Ugis
> 

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.