Lisp HUG Maillist Archive

simple-char?

Hi,

any reason why (LWM 4.4.5):

CL-USER 34 > (open "/Users/dvd/test" :external-format :utf-8 :if- 
exists :supersede :direction :output)

Error: External format (:UTF-8 :EOL-STYLE :LF) produces characters of  
type SIMPLE-CHAR, which is not a subtype of the specified element- 
type BASE-CHAR.
   1 (abort) Return to level 0.
   2 Return to top loop level 0.

Type :b for backtrace, :c <option number> to proceed,  or :? for  
other options

CL-USER 35 : 1 > :a

CL-USER 36 > (open "/Users/dvd/test" :external-format :utf-8 :if- 
exists :supersede :direction :output)
#<STREAM::EF-FILE-STREAM /Users/dvd/test>

David


Re: simple-char?

On Jul 29, 2005, at 10:11 AM, David Tolpin wrote:

> any reason why (LWM 4.4.5):
>
> CL-USER 34 > (open "/Users/dvd/test" :external-format :utf-8 :if- 
> exists :supersede :direction :output)
>
> Error: External format (:UTF-8 :EOL-STYLE :LF) produces characters  
> of type SIMPLE-CHAR, which is not a subtype of the specified  
> element-type BASE-CHAR.
>   1 (abort) Return to level 0.
>   2 Return to top loop level 0.
>

You can solve this by adding :element-type :default to your open  
parameter list. See

http://www.lispworks.com/documentation/lw44/LWUG/html/ 
lwuser-289.htm#pgfId-890221





John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Updated at: 2020-12-10 08:51 UTC