Changeset 5332


Ignore:
Timestamp:
Oct 9, 2006, 3:33:26 PM (18 years ago)
Author:
Gary Byers
Message:

%COPY-STRING-TO-U8: use #\Sub (ascii 26) as a replacement character.

File:
1 edited

Legend:

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

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