From 800d83ddd112cc15e4d8f709c1c366eee840caf1 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 16 Apr 2010 01:28:37 +0000 Subject: [PATCH] MAKE-SYMBOL needs to convert the given string to NFC form to match what INTERN and FIND-SYMBOL do with strings. --- code/symbol.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/symbol.lisp b/code/symbol.lisp index 330363266..8f84353ef 100644 --- a/code/symbol.lisp +++ b/code/symbol.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.42 2010/03/19 15:19:00 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.43 2010/04/16 01:28:37 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -102,7 +102,10 @@ #+gengc (%make-symbol (random most-positive-fixnum) string) ;; Initialize the symbol-hash to -1 to make this fast. It will get ;; computed correctly later on. - #+(or sparc x86 amd64 ppc) (%make-symbol -1 (coerce string 'simple-string))) + #+(or sparc x86 amd64 ppc ) + (%make-symbol -1 (coerce #-unicode string + #+unicode (string-to-nfc string) + 'simple-string))) #+(or gengc x86 amd64 sparc ppc) (defun symbol-hash (symbol) -- GitLab