From: Chris Hanson Date: Mon, 29 Jun 2009 20:58:10 +0000 (-0700) Subject: Allow pathnames to be used in STRING and UTF8-STRING. X-Git-Tag: 20100708-Gtk~373 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=adb333132892ab7e47d19541c7f7922e805cd6ca;p=mit-scheme.git Allow pathnames to be used in STRING and UTF8-STRING. --- diff --git a/src/runtime/string.scm b/src/runtime/string.scm index d8828f8eb..e68ecbb38 100644 --- a/src/runtime/string.scm +++ b/src/runtime/string.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: string.scm,v 14.71 2009/02/11 02:42:38 riastradh Exp $ +$Id$ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -212,6 +212,7 @@ USA. (cond ((not object) "") ((number? object) (number->string object)) ((uri? object) (uri->string object)) + ((pathname? object) (->namestring object)) (else (error:wrong-type-argument object "string component" caller)))) (define (char->string char)