From 00bd848a3fd741d65871a9ae7bb467eb7e3437b6 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 17 Feb 2004 05:46:20 +0000 Subject: [PATCH] Fix some bugs in the parser buffer. --- v7/src/runtime/parser-buffer.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v7/src/runtime/parser-buffer.scm b/v7/src/runtime/parser-buffer.scm index 1ccc17f87..29396e31a 100644 --- a/v7/src/runtime/parser-buffer.scm +++ b/v7/src/runtime/parser-buffer.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: parser-buffer.scm,v 1.11 2004/02/16 05:37:34 cph Exp $ +$Id: parser-buffer.scm,v 1.12 2004/02/17 05:46:20 cph Exp $ Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology @@ -87,7 +87,7 @@ USA. (lambda (string start end) (port/with-input-blocking-mode port 'BLOCKING (lambda () - (input-port/read-substring! port string start end)))))) + (input-port/read-wide-substring! port string start end)))))) (define (source->parser-buffer source) (make-parser-buffer (make-wide-string min-length) 0 0 0 0 source #f 0)) @@ -112,7 +112,7 @@ USA. (set-parser-buffer-line! buffer (parser-buffer-pointer-line p))) (define (get-parser-buffer-tail buffer p) - (call-with-parser-buffer-tail buffer p wide-substring)) + (call-with-parser-buffer-tail buffer p wide-string->utf8-string)) (define (call-with-parser-buffer-tail buffer p procedure) ;; P must be a buffer pointer previously returned by -- 2.25.1