Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    b903e98f
    Fix a couple of issues with changing the stream external format in · b903e98f
    rtoy authored
    midstream.
    
    o When changing the external format, the new converted characters need
      to go into the string-buffer at the point after the last character
      was read.  This maintains consistency if the format is changed
      again before we have to read in another buffer of octets.
    o Handle the case where an external format that uses the string-buffer
      is changed to ISO8859-1, which doesn't.  In this case, the converted
      characters need to be copied to the in-buffer in the right place and
      the string-buffer needs to be set to NIL to indicate that the
      string-buffer is not used anymore.
    o Add a note that we don't handle the case of changing ISO8859-1 to
      another external-format that uses a string-buffer.
    b903e98f
    History
    Fix a couple of issues with changing the stream external format in
    rtoy authored
    midstream.
    
    o When changing the external format, the new converted characters need
      to go into the string-buffer at the point after the last character
      was read.  This maintains consistency if the format is changed
      again before we have to read in another buffer of octets.
    o Handle the case where an external format that uses the string-buffer
      is changed to ISO8859-1, which doesn't.  In this case, the converted
      characters need to be copied to the in-buffer in the right place and
      the string-buffer needs to be set to NIL to indicate that the
      string-buffer is not used anymore.
    o Add a note that we don't handle the case of changing ISO8859-1 to
      another external-format that uses a string-buffer.