Changeset 5302


Ignore:
Timestamp:
Oct 6, 2006, 3:38:09 AM (18 years ago)
Author:
Gary Byers
Message:

%COPY-STRING-TO-U8: use #\? as a replacement character.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-0/l0-misc.lisp

    r5270 r5302  
    4545       ((= i n) u8-vector)
    4646    (declare (fixnum i))
    47     (setf (aref u8-vector dest-idx) (%scharcode string source-idx))
    48     (incf source-idx)
    49     (incf dest-idx)))
     47    (let* ((char (schar string source-idx))
     48           (code (char-code char)))
     49      (declare (type (mod #x11000) code))
     50      (if (> code #xff)
     51        (setq code (char-code #\?)))
     52      (setf (aref u8-vector dest-idx) code)
     53      (incf source-idx)
     54      (incf dest-idx))))
    5055   
    5156       
Note: See TracChangeset for help on using the changeset viewer.