How to Update Unicode Support
Here are the steps for updating the Unicode support in CMUCL. First, find the desired version of Unicode from Unicode.org.
- Update all the files in
src/i18n
. For example, for Unicode 6.3, you can find the files at http://www.unicode.org/Public/6.3.0/ucd. The files have the same names. - Modify
src/tools/build-unidata.lisp
andsrc/code/unidata.lisp
to have the desired values for the Unicode major, minor, and update versions. - Increment the revision number in
*unidata-version*
. - Follow the instructions at the top of
src/tools/build-unidata.lisp
:- Compile and load
src/tools/build-unidata.lisp
- Run
(build-unidata)
. Specify the directory (tosrc/i18n/
if necessary.- If there are significant changes,
build-unidata
may not work. You will have to updatebuild-unidata.lisp
to conform to the new information. - Updates to
build-unidata
may require corresponding changes towrite-unidata
.
- If there are significant changes,
- Run
(write-unidata <path>)
to write out the newunidata.bin
file to<path>
. - Copy the new
unidata.bin
file tosrc/i18n/unidata.bin
.
- Compile and load
- Rebuild cmucl
- Using the new version of cmucl
- Run the tests using either
- The full lisp-unit test-suite
- Use
lisp-unit
and load justtests/unicode.lisp
. Then run the unicode tests.
- There should be no failures in the tests. If there are, fix up errors and start again.
- Run the tests using either
This should give a new version of cmucl with support for the new version of Unicode.
Last modified 11 years ago
Last modified on 03/15/14 17:21:27