From: Chris Hanson Date: Wed, 26 May 2004 15:26:29 +0000 (+0000) Subject: Use new procedure PORT/SUPPORTS-CODING? to eliminate error when X-Git-Tag: 20090517-FFI~1650 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=b756bfb2f142597e349094884a58bbaf9947b8e3;p=mit-scheme.git Use new procedure PORT/SUPPORTS-CODING? to eliminate error when writing XML to string. --- diff --git a/v7/src/xml/xml-parser.scm b/v7/src/xml/xml-parser.scm index b69ae8ab9..d30332e24 100644 --- a/v7/src/xml/xml-parser.scm +++ b/v7/src/xml/xml-parser.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml-parser.scm,v 1.59 2004/02/26 04:50:14 cph Exp $ +$Id: xml-parser.scm,v 1.60 2004/05/26 15:26:29 cph Exp $ Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology @@ -201,7 +201,9 @@ USA. (let ((coding (xml-declaration-encoding declaration))) (and coding (intern coding)))))) - (if (and coding (not (port/known-coding? port coding))) + (if (and coding + (not (port/known-coding? port coding)) + (port/supports-coding? port)) (error:bad-range-argument coding #f)) coding))