Changeset 11813
- Timestamp:
- 05/02/09 19:36:44 (14 years ago)
- Location:
- trunk/abcl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/build-abcl.lisp
r11687 r11813 14 14 (in-package #:build-abcl) 15 15 16 (defun comp (string char) 17 "Chops off the character at the end of `string' if it matches char" 18 (let ((len (length string))) 19 (if (eql char (char string (1- len))) 20 (subseq string 0 (1- len)) 21 string))) 22 16 23 (defun safe-namestring (pathname) 17 (let ((string (namestring pathname))) 24 (let* ((string (namestring pathname)) 25 (len (length string))) 18 26 (when (position #\space string) 19 (setf string (concatenate 'string "\"" string "\""))) 27 (setf string (concatenate 'string "\"" 28 (comp string #\\) 29 "\""))) 20 30 string)) 21 31 … … 310 320 (princ *java-compiler-command-line-prefix* s) 311 321 (princ " -d " s) 312 (princ *build-root*s)322 (princ (safe-namestring *build-root*) s) 313 323 (princ #\Space s) 314 324 (dolist (source-file source-files) 315 325 (princ 316 (if (equal (pathname-directory source-file) dir) 317 (file-namestring source-file) 318 (namestring source-file)) 326 (safe-namestring 327 (if (equal (pathname-directory source-file) dir) 328 (file-namestring source-file) 329 (namestring source-file))) 319 330 s) 320 331 (princ #\space s)))) … … 324 335 (ensure-directories-exist *build-root*) 325 336 (dolist (source-file source-files t) 326 (unless (java-compile-file source-file)337 (unless (java-compile-file (safe-namestring source-file)) 327 338 (format t "Build failed.~%") 328 339 (return nil))))))))) -
trunk/abcl/src/org/armedbear/lisp/Site.java
r11676 r11813 36 36 import java.io.File; 37 37 import java.net.URL; 38 import java.net.URLDecoder; 38 39 39 40 public final class Site extends Lisp … … 48 49 if (protocol != null && protocol.equals("file")) { 49 50 String path = url.getPath(); 51 try { 52 path = URLDecoder.decode(path, "UTF-8"); 53 } 54 catch (java.io.UnsupportedEncodingException uee) { 55 // can't happen: Java implementations are required to 56 // support UTF-8 57 } 50 58 int index = path.lastIndexOf('/'); 51 59 if (index >= 0) {
Note: See TracChangeset
for help on using the changeset viewer.