fixed lookahead-char so that it doesn't advance the port position on
decoding errors.
This commit is contained in:
parent
a9da844a46
commit
bdda213120
|
@ -907,7 +907,6 @@
|
|||
|
||||
(define (lookahead-char-utf8-mode p who)
|
||||
(define (do-error p who)
|
||||
($set-port-index! p (fx+ ($port-index p) 1))
|
||||
(case (transcoder-error-handling-mode ($port-transcoder p))
|
||||
[(ignore) (lookahead-char p)]
|
||||
[(replace) #\xFFFD]
|
||||
|
|
|
@ -1 +1 @@
|
|||
1661
|
||||
1662
|
||||
|
|
Loading…
Reference in New Issue