From adb333132892ab7e47d19541c7f7922e805cd6ca Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 29 Jun 2009 13:58:10 -0700 Subject: [PATCH] Allow pathnames to be used in STRING and UTF8-STRING. --- src/runtime/string.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.25.1