Raymond Toy pushed to branch issue-158-darwin-pathnames at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/code/pathname.lisp
    ... ... @@ -252,6 +252,7 @@
    252 252
     ;;; This constructor is used to make an instance of the correct type
    
    253 253
     ;;; from parsed arguments.
    
    254 254
     
    
    255
    +#+darwin
    
    255 256
     (defvar *enable-darwin-path-normalization* nil
    
    256 257
       "When non-NIL, pathnames are on Darwin are normalized when created.
    
    257 258
       Otherwise, the pathnames are unchanged.
    
    ... ... @@ -259,22 +260,6 @@
    259 260
       This must be NIL during bootstrapping because Unicode is not yet
    
    260 261
       available.")
    
    261 262
     
    
    262
    -(defun normalize-name (piece)
    
    263
    -  ;; Normalize Darwin pathnames by converting Hangul
    
    264
    -  ;; syllables to conjoining jamo, and converting the
    
    265
    -  ;; string to NFD form, but skipping over a range of
    
    266
    -  ;; characters.
    
    267
    -  (typecase piece
    
    268
    -    (string
    
    269
    -     (if *enable-darwin-path-normalization*
    
    270
    -	 (decompose (unicode::decompose-hangul piece)
    
    271
    -		    :compatibility nil
    
    272
    -		    :darwinp t)
    
    273
    -	 piece))
    
    274
    -    (t
    
    275
    -     ;; What should we do about lisp::pattern objects?
    
    276
    -     piece)))
    
    277
    -  
    
    278 263
     (defun %make-pathname-object (host device directory name type version)
    
    279 264
       (if (typep host 'logical-host)
    
    280 265
           (flet ((upcasify (thing)