[Ecls-list] ECL 10.4.1 with unicode seem not work

William Wang javacave at gmail.com
Wed May 12 01:40:24 UTC 2010


ecl 10.4.1 for window xp 32 chinese edition default encoding is cp936(GBK)
compile ecl 10.4.1 with mingw32 with --enable-unicode.

ecl.exe

D:\msys\1.0\local>ecl
ECL (Embeddable Common-Lisp) 10.4.1
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #<process SI:TOP-LEVEL 00db0fc0>.
> *features*

(:FORMATTER :UINT64-T :UINT32-T :UINT16-T :RELATIVE-PACKAGE-NAMES :UNICODE
 :DFFI :CLOS-STREAMS :CMU-FORMAT :WINDOWS :WIN32 :MINGW32 :ECL-PDE :DLOPEN
 :CLOS :THREADS :BOEHM-GC :ANSI-CL :COMMON-LISP :IEEE-FLOATING-POINT
 :PREFIXED-API :FFI :PENTIUM4 :COMMON :ECL)
> (print "好") ;;here is chinese string

"?
"?  ;; print trash ,so change encoding

> (ext::stream-external-format-set *standard-input* :CP936)

> (print "好") ;;here is chinese string

In function GETHASH, the value of the second argument is
  SI::WINDOWS-CP936
which is not of the expected type HASH-TABLE

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at GETHASH. In: #<process SI:TOP-LEVEL 00db0fc0>.
>>
Debugger received error: In function GETHASH, the value of the second
argument is
  SI::WINDOWS-CP936
which is not of the expected type HASH-TABLE
Error flushed.
>>

how to enable input chinese string in ecl.exe print normal?

thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100512/bf0ec35d/attachment.html>


More information about the ecl-devel mailing list