Fix bug in handling the state BOM marker and also extend to work
composing external formats. The state BOM marker also needs to indicate how long the BOM is. * src/code/stream.lisp * Handle the BOM marker correctly for composed format. * Handle the new values for the state BOM marker. * src/pcl/simple-streams/external-formats/utf-16.lisp * Change BOM state marker to +2 and -2 instead of 1 and 2 to indicate the length of the BOM. * src/pcl/simple-streams/external-formats/utf-32.lisp * Change BOM state marker to +4 and -4 instead of 1 and 2 to indicate the length of the BOM.
Showing
- src/code/stream.lisp 24 additions, 29 deletionssrc/code/stream.lisp
- src/pcl/simple-streams/external-formats/utf-16.lisp 17 additions, 9 deletionssrc/pcl/simple-streams/external-formats/utf-16.lisp
- src/pcl/simple-streams/external-formats/utf-32.lisp 15 additions, 13 deletionssrc/pcl/simple-streams/external-formats/utf-32.lisp
Loading
Please register or sign in to comment