[Ecls-list] ECL 12.2.1 can not work with CJK language!
cm
xiao.ao.jiang.hu.cm at gmail.com
Fri May 18 05:43:30 UTC 2012
I had try Python2.7 console in the Windows, it work fine.
code page is 936, and i used google pinyin input method.
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> print "o"
o
>>> print "ºÃ"
ºÃ
I dont know the difference of input code between Ecl and Python, maybe the
Python code is usefull to you.
2012/5/18 Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com>
> Test program:
> #include <fcntl.h>
> #include <errno.h>
> int main()
> {
> char buffer;
> int ok;
> do {
> ok = read(0, &buffer, 1);
> printf("\ncode=%d %x errno=%d, ok=%d", buffer, buffer, errno, ok);
> } while (ok > 0);
> }
>
> Output:
>
> C:\cygwin\home\Juanjo\src\ecl\win32>chcp 936
> Active code page: 936
> C:\cygwin\home\Juanjo\src\ecl\win32>echo w | foo.exe
> code=-127 ffffff81 errno=0, ok=1
> code=119 77 errno=0, ok=1
> code=32 20 errno=0, ok=1
> code=10 a errno=0, ok=1
> code=10 a errno=0, ok=0
> C:\cygwin\home\Juanjo\src\ecl\win32>foo.exe
> w
> code=-127 ffffff81 errno=22, ok=-1
>
> So it definitely seems that Windows's C library does not allow input ifrom
> the console n other codepages?
>
> Juanjo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120518/8332d8e4/attachment.html>
More information about the ecl-devel
mailing list