Change symbols to be in NFC.
authorChris Hanson <org/chris-hanson/cph>
Sun, 26 Mar 2017 20:50:46 +0000 (13:50 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 26 Mar 2017 20:50:46 +0000 (13:50 -0700)
src/runtime/ustring.scm

index 83850a856e62aba54f187f32a410dfc770321628..56f778a8a7e007247bd46e0f6755fb7abfe4869f 100644 (file)
@@ -505,10 +505,11 @@ USA.
          #t))))
 
 (define (string-canonical-foldcase string)
-  (let ((nfd (string->nfd string)))
-    (if (nfd-string-case-folded? nfd)
-       nfd
-       (string->nfd (string-foldcase string)))))
+  (string->nfc
+   (let ((nfd (string->nfd string)))
+     (if (nfd-string-case-folded? nfd)
+        nfd
+        (string-foldcase string)))))
 \f
 ;;;; Normalization