Generalize <string> method to include <wide-string>.
authorChris Hanson <org/chris-hanson/cph>
Tue, 15 Jul 2003 02:33:10 +0000 (02:33 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 15 Jul 2003 02:33:10 +0000 (02:33 +0000)
v7/src/xml/xml-output.scm

index 972cdcdd8afc7639e51bc1c5f160edadca9bba5b..8b68d0eb5a7a8f37408ee8f0703ed2c6070f26c4 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xml-output.scm,v 1.19 2003/07/03 16:47:49 cph Exp $
+$Id: xml-output.scm,v 1.20 2003/07/15 02:33:10 cph Exp $
 
 Copyright 2001,2002,2003 Massachusetts Institute of Technology
 
@@ -317,7 +317,8 @@ USA.
     (write-xml-external-id (xml-!notation-id decl) col ctx)
     (emit-string ">" ctx)))
 
-(define-method %write-xml ((string <string>) ctx)
+(define-method %write-xml
+    ((string (union-specializer <string> <wide-string>)) ctx)
   (write-escaped-string string
                        '((#\< . "&lt;")
                          (#\& . "&amp;"))