X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src.lisp;h=ab13bad4a490d76a83fbe13d499e87eef7714d6a;hb=3d8bae190ceef8b2b9f48fdffd6baacd270273d4;hp=6ba041700a3980191f81c9390027cd7bb1767aa8;hpb=feebbfdc402097d14c9a4cd27bf1a7a12120f7c9;p=puri.git diff --git a/src.lisp b/src.lisp index 6ba0417..ab13bad 100644 --- a/src.lisp +++ b/src.lisp @@ -4,7 +4,7 @@ ;; ;; copyright (c) 1999-2002 Franz Inc, Berkeley, CA - All rights reserved. ;; copyright (c) 2002-2005 Franz Inc, Oakland, CA - All rights reserved. -;; copyright (c) 2003-2006 Kevin Rosenberg (porting changes) +;; copyright (c) 2003-2010 Kevin Rosenberg ;; ;; This code is free software; you can redistribute it and/or ;; modify it under the terms of the version 2.1 of @@ -846,11 +846,10 @@ URI ~s contains illegal character ~s at position ~d." #+allegro (with-output-to-string (s) (excl::maybe-print-fast s port)) ) - (when path - (encode-escaped-encoding path - nil - ;;*reserved-path-characters* - escape)) + (encode-escaped-encoding (or path "/") + nil + ;;*reserved-path-characters* + escape) (when query "?") (when query (encode-escaped-encoding query nil escape)) (when fragment "#") @@ -1315,13 +1314,6 @@ Executes the forms once for each uri with var bound to the current uri" "#u takes a string or list argument: ~s" arg))))) -#+allegro -excl:: -#+allegro -(locally (declare (special std-lisp-readtable)) - (let ((*readtable* std-lisp-readtable)) - (set-dispatch-macro-character #\# #\u #'puri::sharp-u))) -#-allegro (set-dispatch-macro-character #\# #\u #'puri::sharp-u) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;