load时出现的奇特的字符\217\205错误

load时出现的奇特的字符217/205错误

以前调试过的一段代码, 使用语句

CL-USER> (require :svg "/Users/admin/Ecode/my-package/svg.lisp")
加载时,报出了下面的错误, 截图如下:

load时出现的奇特的字符\217\205错误

拷贝过来显示如下:

Unbound variable: COM.LAND-OF-LISP.C17.SVG::|ԏ°…|
   [Condition of type UNBOUND-VARIABLE]

Restarts:
 0: [CONTINUE] Retry getting the value of COM.LAND-OF-LISP.C17.SVG::|ԏ°…|.
 1: [USE-VALUE] Specify a value of COM.LAND-OF-LISP.C17.SVG::|ԏ°…| to use this time.
 2: [STORE-VALUE] Specify a value of COM.LAND-OF-LISP.C17.SVG::|ԏ°…| to store and use.
 3: [RETRY-LOAD] Retry loading "/Users/admin/ECode/my-package/svg.lisp"
 4: [SKIP-LOAD] Skip loading "/Users/admin/ECode/my-package/svg.lisp"
 5: [LOAD-OTHER] Load other file instead of "/Users/admin/ECode/my-package/svg.lisp"
 --more--

Backtrace:
  0: ((:INTERNAL CCL::WITH-COMPILATION-UNIT-BODY CCL::LOAD-FROM-STREAM))
  1: (CCL::CALL-WITH-COMPILATION-UNIT #<COMPILED-LEXICAL-CLOSURE (:INTERNAL CCL::WITH-COMPILATION-UNIT-BODY CCL::LOAD-FROM-STREAM) #x4494C5F> :OVERRIDE NIL)
  2: (CCL::LOAD-FROM-STREAM #<BASIC-FILE-CHARACTER-INPUT-STREAM ("/Users/admin/ECode/my-package/svg.lisp"/8 ISO-8859-1) #x302000CF349D> NIL)
  3: (CCL::%LOAD #P"/Users/admin/ECode/my-package/svg.lisp" NIL NIL :ERROR :DEFAULT)
  4: (LOAD "/Users/admin/ECode/my-package/svg.lisp" :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST :ERROR :EXTERNAL-FORMAT :DEFAULT)
  5: (REQUIRE :SVG "/Users/admin/ECode/my-package/svg.lisp")
  6: (CCL::CALL-CHECK-REGS REQUIRE :SVG "/Users/admin/ECode/my-package/svg.lisp")
  7: (CCL::CHEAP-EVAL (REQUIRE :SVG "/Users/admin/ECode/my-package/svg.lisp"))
 --more--
在 Emacs 中检查了代码没发现什么奇怪的地方, 然后无意中用 Sublime Text2 打开代码, 问题终于现形了,原来在代码最后误加了一个全角的字符,如图:

把这个字符删除, 一切 OK

你可能感兴趣的:(debug,lisp,common,全角字符)