24 lines
3.2 KiB
Plaintext
24 lines
3.2 KiB
Plaintext
Medley CONVERT-TO-UTF8
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
CONVERT-TO-UTF8
|
||
1
|
||
|
||
4
|
||
|
||
By Ron Kaplan
|
||
This document was last edited in February 2026.
|
||
|
||
This file contains a single function that facilitates the conversion of Medley source files from the default :MCCS external format to :UTF-8. The characters in the UTF-8 versions will have the same appearance outside of Medley (e.g. in github) as they do in Medley, even though the character-encoding byte sequences will be different for characters outside of Asciii (and for left-arrow and up-arrow).
|
||
(CONVERT-TO-UTF8 FILE) [Function]
|
||
This first ensures that EXPORTS.ALL is loaded, then loads the contents of FILE to property lists and also loads the EVAL@COMPILE items on FILE. It then performs (MAKEFILE FILE '(NEW :UTF-8)) and compiles all the function on the resulting converted file according to its FILETYPE property. (There are apparently mistaken cases where the FILETYPE is CL:COMPILE-FILE but the current compile file is an LCOM and there is no DFASL. In that case, the FILETYPE is reverted to :BCOMPL.)
|
||
|