fixed lookahead-char bug that I just made.
This commit is contained in:
parent
665ca784d1
commit
c53ffd5314
|
@ -836,8 +836,9 @@
|
||||||
|
|
||||||
(define (lookahead-char-utf8-mode p who)
|
(define (lookahead-char-utf8-mode p who)
|
||||||
(define (do-error p who)
|
(define (do-error p who)
|
||||||
|
($set-port-index! p (fx+ ($port-index p) 1))
|
||||||
(case (transcoder-error-handling-mode ($port-transcoder p))
|
(case (transcoder-error-handling-mode ($port-transcoder p))
|
||||||
[(ignore) (lookahead-char p)]
|
[(ignore) (lookahead-char p)]
|
||||||
[(replace) #\xFFFD]
|
[(replace) #\xFFFD]
|
||||||
[(raise)
|
[(raise)
|
||||||
(raise (make-i/o-decoding-error p))]
|
(raise (make-i/o-decoding-error p))]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1506
|
1507
|
||||||
|
|
Loading…
Reference in New Issue