Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    f971e392
    Implement more of the external format error handlers. · f971e392
    rtoy authored
    code/extfmts.lisp
    o Call the error handler for iso8859-1 output.
    o In OCTETS-TO-CODEPOINT and CODEPOINT-TO-OCTETS, call the external
      format with the error argument.
    o In OCTETS-TO-CHAR
      - Call OCTETS-TO-CODEPOINT with the error handler.
      - For all of the error conditions, call the error handler if
        defined.
    o Add error parameter to EF-STRING-TO-OCTETS and EF-ENCODE so we can
      handle errors.  Call CHAR-TO-OCTETS with the error handler.
    o Add error parameter to STRING-TO-OCTETS and use it.
    o Add error parameter to EF-OCTETS-TO-STRING and EF-DECODE so we can
      handle errors.  Call OCTETS-TO-CHAR with the error handler.
    o Add error parameter to OCTETS-TO-STRING and use it.
    o In STRING-ENCODE and STRING-DECODE, call the ef function with the
      error handler.
    o Change STRING-ENCODE to use keyword args instead of optional args.
      Add error parameter and use it.
    
    code/fd-stream-extfmt.lisp:
    o Tell OCTETS-TO-STRING about the error handler stored in the
      fd-stream.
    
    code/fd-stream.lisp:
    o OPEN, MAKE-FD-STREAM, and OPEN-FD-STREAM get DECODING-ERROR and
      ENCODING-ERROR keyword arguments for specifying how to handle
      decoding and encoding errors in external formats.
    
    code/stream.lisp:
    o Make sure the error handler is called in
      FAST-READ-CHAR-STRING-REFILL.
    
    pcl/simple-streams/external-formats/utf-8.lisp:
    o Initial cut at calling the error handler for the various possible
      invalid octet streams for a utf-8 encoding.
    f971e392
    History
    Implement more of the external format error handlers.
    rtoy authored
    code/extfmts.lisp
    o Call the error handler for iso8859-1 output.
    o In OCTETS-TO-CODEPOINT and CODEPOINT-TO-OCTETS, call the external
      format with the error argument.
    o In OCTETS-TO-CHAR
      - Call OCTETS-TO-CODEPOINT with the error handler.
      - For all of the error conditions, call the error handler if
        defined.
    o Add error parameter to EF-STRING-TO-OCTETS and EF-ENCODE so we can
      handle errors.  Call CHAR-TO-OCTETS with the error handler.
    o Add error parameter to STRING-TO-OCTETS and use it.
    o Add error parameter to EF-OCTETS-TO-STRING and EF-DECODE so we can
      handle errors.  Call OCTETS-TO-CHAR with the error handler.
    o Add error parameter to OCTETS-TO-STRING and use it.
    o In STRING-ENCODE and STRING-DECODE, call the ef function with the
      error handler.
    o Change STRING-ENCODE to use keyword args instead of optional args.
      Add error parameter and use it.
    
    code/fd-stream-extfmt.lisp:
    o Tell OCTETS-TO-STRING about the error handler stored in the
      fd-stream.
    
    code/fd-stream.lisp:
    o OPEN, MAKE-FD-STREAM, and OPEN-FD-STREAM get DECODING-ERROR and
      ENCODING-ERROR keyword arguments for specifying how to handle
      decoding and encoding errors in external formats.
    
    code/stream.lisp:
    o Make sure the error handler is called in
      FAST-READ-CHAR-STRING-REFILL.
    
    pcl/simple-streams/external-formats/utf-8.lisp:
    o Initial cut at calling the error handler for the various possible
      invalid octet streams for a utf-8 encoding.