X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src.lisp;h=a189331f87b81e9c07d2460e10fb66d0751b2d93;hb=409ffc1a2cf6a9c0066d1fed555d19bad6ae6706;hp=bfbecfb8cfdb539c9238a60e19c30b86f016d4ee;hpb=b3ed4344e712e11fcc806a9398a5a1189fb016e5;p=puri.git diff --git a/src.lisp b/src.lisp index bfbecfb..a189331 100644 --- a/src.lisp +++ b/src.lisp @@ -26,6 +26,7 @@ (defpackage #:puri (:use #:cl) + #-allegro (:nicknames #:net.uri) (:export #:uri ; the type and a function #:uri-p @@ -899,6 +900,8 @@ URI ~s contains illegal character ~s at position ~d." (vector #\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9 #\a #\b #\c #\d #\e #\f)) (defun encode-escaped-encoding (string reserved-chars escape) + (unless (typep string 'simple-string) + (setq string (coerce string 'simple-string))) (when (null escape) (return-from encode-escaped-encoding string)) ;; Make a string as big as it possibly needs to be (3 times the original ;; size), and truncate it at the end.